You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by co...@apache.org on 2025/09/05 22:22:28 UTC
(tinkerpop) 19/19: Replaced tests with ones against modern graph.
This is an automated email from the ASF dual-hosted git repository.
colegreer pushed a commit to branch repeatLimit
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 40183f519c936584f599a58ef0b7d0ebd2d17e50
Author: Andrea Child <an...@improving.com>
AuthorDate: Wed Sep 3 23:33:33 2025 -0700
Replaced tests with ones against modern graph.
---
.../gremlin/test/features/filter/Range.feature | 143 ++++++++-------------
1 file changed, 51 insertions(+), 92 deletions(-)
diff --git a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/filter/Range.feature b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/filter/Range.feature
index 14407afab8..047ac64e78 100644
--- a/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/filter/Range.feature
+++ b/gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/filter/Range.feature
@@ -412,164 +412,123 @@ Feature: Step - range()
| l[d[2].i] |
| l[d[5].i] |
- Scenario: g_V_hasXnameX_repeatXlimitX1X_outXfollowedByXX_timesX2X_hasXnameX_filterXvaluesXnameX_mapXlengthXX_isXltX7XXX_valuesXnameX
- Given the grateful graph
- And the traversal of
- """
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").repeat(__.limit(1).out("followedBy")).times(2).has("name", neq("")).filter(__.values("name").map(__.length()).is(lt(7))).values("name")
- """
- When iterated to list
- Then the result should be unordered
- | result |
- | GLORIA |
- | DRUMS |
-
- Scenario: g_V_hasXnameX_limitX1X_outXfollowedByX_limitX1X_outXfollowedByX_hasXnameX_filterXvaluesXnameX_mapXlengthXX_isXltX7XXX_valuesXnameX
- Given the grateful graph
+ Scenario: 111.1
+ Given the modern graph
+ And using the parameter vid1 defined as "v[marko].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").limit(1).out("followedBy").limit(1).out("followedBy").has("name", neq("")).filter(__.values("name").map(__.length()).is(lt(7))).values("name")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid1).repeat(__.limit(1)).times(2).values("name")
"""
When iterated to list
Then the result should be unordered
| result |
- | GLORIA |
- | DRUMS |
+ | marko |
- Scenario: g_V_hasXnameX_repeatXlimitX2X_outXfollowedByXX_timesX2X_hasXnameX_filterXvaluesXnameX_mapXlengthXX_isXltX5XXX_valuesXnameX
- Given the grateful graph
+ Scenario: 111.2
+ Given the modern graph
+ And using the parameter vid1 defined as "v[marko].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").repeat(__.limit(2).out("followedBy")).times(2).has("name", neq("")).filter(__.values("name").map(__.length()).is(lt(5))).values("name")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid1).repeat(__.limit(1)).until(__.loops().is(2)).values("name")
"""
When iterated to list
Then the result should be unordered
| result |
- | RAIN |
- | DEAL |
+ | marko |
- Scenario: g_V_hasXnameX_limitX2X_outXfollowedByX_limitX2X_outXfollowedByX_hasXnameX_filterXvaluesXnameX_mapXlengthXX_isXltX5XXX_valuesXnameX
- Given the grateful graph
+ Scenario: 111.3
+ Given the modern graph
+ And using the parameter vid1 defined as "v[marko].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").limit(2).out("followedBy").limit(2).out("followedBy").has("name", neq("")).filter(__.values("name").map(__.length()).is(lt(5))).values("name")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid1).limit(1).limit(1).values("name")
"""
When iterated to list
Then the result should be unordered
| result |
- | RAIN |
- | DEAL |
+ | marko |
- Scenario: g_V_hasXnameX_repeatXoutXfollowedByX_limitX1XX_timesX2X_valuesXnameX
- Given the grateful graph
+ Scenario: 222.1
+ Given the modern graph
+ And using the parameter vid5 defined as "v[ripple].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").repeat(__.out("followedBy").limit(1)).times(2).values("name")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid5).repeat(__.limit(1).in()).times(2).values("name")
"""
When iterated to list
Then the result should be unordered
| result |
- | PLAYING IN THE BAND |
+ | marko |
- Scenario: g_V_hasXnameX_outXfollowedByX_limitX1X_outXfollowedByX_limitX1X_valuesXnameX
- Given the grateful graph
+ Scenario: 222.2
+ Given the modern graph
+ And using the parameter vid5 defined as "v[ripple].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").out("followedBy").limit(1).out("followedBy").limit(1).values("name")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid5).repeat(__.limit(1).in()).until(loops().is(2)).values("name")
"""
When iterated to list
Then the result should be unordered
| result |
- | PLAYING IN THE BAND |
+ | marko |
- Scenario: g_V_hasXnameX_repeatXoutXfollowedByX_limitX2XX_timesX2X_valuesXnameX
- Given the grateful graph
+ Scenario: 222.3
+ Given the modern graph
+ And using the parameter vid5 defined as "v[ripple].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").repeat(__.out("followedBy").limit(2)).times(2).values("name")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid5).limit(1).in().limit(1).in().values("name")
"""
When iterated to list
Then the result should be unordered
| result |
- | SUGAR MAGNOLIA |
- | PLAYING IN THE BAND |
+ | marko |
- Scenario: g_V_hasXnameX_outXfollowedByX_limitX2X_outXfollowedByX_limitX2X_valuesXnameX
- Given the grateful graph
+ Scenario: 333.1
+ Given the modern graph
+ And using the parameter vid5 defined as "v[ripple].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").out("followedBy").limit(2).out("followedBy").limit(2).values("name")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid5).repeat(__.limit(1).in()).times(1).repeat(__.limit(1).in()).times(1).values("name")
"""
When iterated to list
Then the result should be unordered
| result |
- | SUGAR MAGNOLIA |
- | PLAYING IN THE BAND |
+ | marko |
- Scenario: g_V_hasXnameX_repeatXlimitX1X_outXfollowedByXX_timesX2X_repeatXlimitX1X_inXfollowedByXX_timesX1X_hasXnameX_filterXvaluesXnameX_mapXlengthXX_isXltX5XXX_valuesXnameX
- Given the grateful graph
+ Scenario: 333.2
+ Given the modern graph
+ And using the parameter vid5 defined as "v[ripple].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").repeat(__.limit(1).out("followedBy")).times(2).repeat(__.limit(1).in("followedBy")).times(1).has("name", neq("")).filter(__.values("name").map(__.length()).is(lt(5))).values("name")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid5).repeat(__.limit(1).in()).until(loops().is(1)).repeat(__.limit(1).in()).until(loops().is(1)).values("name")
"""
When iterated to list
Then the result should be unordered
| result |
- | DEAL |
+ | marko |
- Scenario: g_V_hasXnameX_limitX1X_outXfollowedByX_limitX1X_outXfollowedByX_limitX1X_inXfollowedByX_hasXnameX_filterXvaluesXnameX_mapXlengthXX_isXltX5XXX_valuesXnameX
- Given the grateful graph
+ Scenario: 444.1
+ Given the modern graph
+ And using the parameter vid5 defined as "v[ripple].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").limit(1).out("followedBy").limit(1).out("followedBy").limit(1).in("followedBy").has("name", neq("")).filter(__.values("name").map(__.length()).is(lt(5))).values("name")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid5).repeat(__.limit(1).in().repeat(__.limit(1).in()).times(1)).times(1).values("name")
"""
When iterated to list
Then the result should be unordered
| result |
- | DEAL |
-
- Scenario: g_V_hasXnameX_repeatXlimitX1X_outXfollowedByX_filterXvaluesXnameX_mapXlengthXX_isXltX5XXX_aggregateXxX_byXnameXX_timesX2X_capXxX
- Given the grateful graph
- And the traversal of
- """
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").repeat(__.limit(1).out("followedBy").filter(__.values("name").map(__.length()).is(lt(5))).aggregate("x").by("name")).times(2).cap("x")
- """
- When iterated next
- Then the result should be unordered
- | result |
- | DEAL |
- | RAIN |
+ | marko |
- Scenario: g_V_hasXnameX_limitX1X_outXfollowedByX_filterXvaluesXnameX_mapXlengthXX_isXltX5XXX_aggregateXxX_byXnameX_limitX1X_outXfollowedByX_filterXvaluesXnameX_mapXlengthXX_isXltX5XXX_aggregateXxX_byXnameX_capXxX
- Given the grateful graph
+ Scenario: 444.2
+ Given the modern graph
+ And using the parameter vid5 defined as "v[ripple].id"
And the traversal of
"""
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").limit(1).out("followedBy").filter(__.values("name").map(__.length()).is(lt(5))).aggregate("x").by("name").limit(1).out("followedBy").filter(__.values("name").map(__.length()).is(lt(5))).aggregate("x").by("name").cap("x")
+ g.withoutStrategies(RepeatUnrollStrategy).V(vid5).repeat(limit(1).in().aggregate('x')).times(2).cap('x')
"""
When iterated next
Then the result should be unordered
| result |
- | DEAL |
- | RAIN |
-
- Scenario: g_V_hasXnameX_unionXoutXfollowedByX_limitX1X_outXfollowedByX_outXfollowedByX_limitX1XX_repeatXlimitX1XX_timesX1X_valuesXnameX
- Given the grateful graph
- And the traversal of
- """
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").union(__.out("followedBy").limit(1), __.out("followedBy").out("followedBy").limit(1)).repeat(__.limit(1)).times(1).values("name")
- """
- When iterated to list
- Then the result should be unordered
- | result |
- | MORNING DEW |
-
- Scenario: g_V_hasXnameX_unionXoutXfollowedByX_limitX1X_outXfollowedByX_outXfollowedByX_limitX1XX_limitX1X_valuesXnameX
- Given the grateful graph
- And the traversal of
- """
- g.withoutStrategies(RepeatUnrollStrategy).V().has("name", "DARK STAR").union(__.out("followedBy").limit(1), __.out("followedBy").out("followedBy").limit(1)).limit(1).values("name")
- """
- When iterated to list
- Then the result should be unordered
- | result |
- | MORNING DEW |
+ | v[josh] |
+ | v[marko] |
\ No newline at end of file