[
https://issues.apache.org/jira/browse/TINKERPOP3-549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14483292#comment-14483292
]
Daniel Kuppitz commented on TINKERPOP3-549:
-------------------------------------------
The last traversal is still an issue:
{code:none}
gremlin>
g.V(1).repeat(out().as("a")).until(label().is("software")).in("created").back("a").path().by(branch{it.get().getClass()}.
gremlin> option(ArrayList.class, unfold().values("name").fold()).
gremlin> option(none, values("name")))
==>[[], lop, marko, lop]
==>[marko, lop, josh, lop]
==>[marko, lop, peter, lop]
==>[marko, josh, ripple, josh, [josh, ripple]]
==>[marko, josh, lop, marko, [josh, lop]]
==>[marko, josh, lop, josh, [josh, lop]]
==>[marko, josh, lop, peter, [josh, lop]]
{code}
This is the expected result:
{code:none}
gremlin>
g.V(1).repeat(out().as("a")).until(out().count().is(0l)).in("created").back("a").path().by
{it instanceof ArrayList ? it*.value("name") : it.value("name")}
==>[marko, lop, marko, lop]
==>[marko, lop, josh, lop]
==>[marko, lop, peter, lop]
==>[marko, josh, ripple, josh, [josh, ripple]]
==>[marko, josh, lop, marko, [josh, lop]]
==>[marko, josh, lop, josh, [josh, lop]]
==>[marko, josh, lop, peter, [josh, lop]]
{code}
> Path data structure unit tests
> ------------------------------
>
> Key: TINKERPOP3-549
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-549
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: test-suite
> Reporter: Daniel Kuppitz
> Fix For: 3.0.0.GA
>
>
> Cover the sample(s) in [Path Data
> Structure|http://www.tinkerpop.com/docs/3.0.0-SNAPSHOT/#path-data-structure]
> with unit tests. At the moment there's nothing that prevents one from
> removing the List-logic in
> [Path::get()|https://github.com/apache/incubator-tinkerpop/blob/master/gremlin-core/src/main/java/com/tinkerpop/gremlin/process/Path.java#L50-L71].
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)