[
https://issues.apache.org/jira/browse/TINKERPOP-3130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17925075#comment-17925075
]
ASF GitHub Bot commented on TINKERPOP-3130:
-------------------------------------------
andreachild commented on code in PR #3024:
URL: https://github.com/apache/tinkerpop/pull/3024#discussion_r1947276073
##########
gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/filter/Discard.feature:
##########
@@ -46,4 +46,64 @@ Feature: Step - discard()
When iterated to list
Then the result should be empty
+ Scenario: g_V_discard
+ Given the modern graph
+ And the traversal of
+ """
+ g.V().discard()
+ """
+ When iterated to list
+ Then the result should be empty
+
+ Scenario: g_V_discard_none
+ Given the modern graph
+ And the traversal of
+ """
+ g.V().discard().discard()
+ """
+ When iterated to list
+ Then the result should be empty
+
+ Scenario: g_V_discard_fold
+ Given the modern graph
+ And the traversal of
+ """
+ g.V().discard().fold()
+ """
+ When iterated to list
+ Then the result should be unordered
+ | result |
+ | l[] |
+ Scenario: g_V_discard_fold_none
Review Comment:
Should this be named `discard_fold_discard`?
> Better consistency for none()/discard() usage
> ---------------------------------------------
>
> Key: TINKERPOP-3130
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3130
> Project: TinkerPop
> Issue Type: Improvement
> Components: language, process
> Affects Versions: 3.7.3
> Reporter: Stephen Mallette
> Priority: Minor
>
> {{g.V().none().path()}} should work and does so in the console, but the
> grammar fails to parse it because it treats {{none()}} in a special way.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)