Github user dkuppitz commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/572#discussion_r106552697
  
    --- Diff: 
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategyTest.java
 ---
    @@ -191,6 +206,9 @@ public void doTest() {
                     {__.V().as("a").optional(bothE().dedup().as("b")).
                             choose(select("b"), select("a","b"), 
project("a").by(select("a"))),
                             "[[[a, b]], [[a, b]], [[a, b]], [[[a, b]]], [[a, 
b]]]", null},
    +                
{__.V().as("a").out().program(labeledPathVertexProgram).select("a"), "[]", 
null},
    +                
{__.V().as("a").out().program(pathVertexProgram).select("a"), "[]", null},
    +                
{__.V().as("a").out().program(emptyRequirementsVertexProgram).select("a"), 
"[[]]", null}
    --- End diff --
    
    I don't understand how the assertions work or rather what exactly is being 
tested here, but having `select('a')` as the last step, would keep the label 
anyways, so that the VP would have access to it, no matter what its 
requirements are, right?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to