Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Nov 4, 2023
1 parent 2544f7d commit f44141c
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/tck/features/path/AllPath.IntVid.feature
Original file line number Diff line number Diff line change
@@ -125,6 +125,16 @@ Feature: Integer Vid All Path
| <("Tony Parker")-[:like@0]->("Manu Ginobili")-[:like@0]->("Tim Duncan")> |
| <("Tony Parker")-[:like@0]->("Tim Duncan")> |
| <("Tony Parker")-[:like@0]->("Tim Duncan")-[:like@0]->("Manu Ginobili")-[:like@0]->("Tim Duncan")> |
When executing query:
"""
lookup on player where player.age>20 YIELD id(vertex) as vid
| go 1 step from $-.vid over * where "player" in labels($$) yield distinct id($$) as dst,$-.vid as src
| find noloop path from $-.src to $-.dst over * upto 1 step yield path as p | limit 10,10
| yield count(*)
"""
Then the result should be, in any order, with relax comparison:
| count(*) |
| 10 |

Scenario: Integer Vid [1] ALL PATH REVERSELY
Given a graph with space named "nba_int_vid"
10 changes: 10 additions & 0 deletions tests/tck/features/path/AllPath.feature
Original file line number Diff line number Diff line change
@@ -279,6 +279,16 @@ Feature: All Path
Then the result should be, in any order, with relax comparison:
| count(*) |
| 0 |
When executing query:
"""
lookup on player where player.age>20 YIELD id(vertex) as vid
| go 1 step from $-.vid over * where "player" in labels($$) yield distinct id($$) as dst,$-.vid as src
| find noloop path from $-.src to $-.dst over * upto 1 step yield path as p | limit 10,10
| yield count(*)
"""
Then the result should be, in any order, with relax comparison:
| count(*) |
| 10 |

Scenario: [1] ALL PATH REVERSELY
When executing query:

0 comments on commit f44141c

Please sign in to comment.