Skip to content

Commit

Permalink
same src/dst for variable length pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu committed Jan 6, 2023
1 parent e6ff12c commit 36b2909
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions tests/tck/features/match/VariableLengthPattern.feature
Original file line number Diff line number Diff line change
Expand Up @@ -375,3 +375,50 @@ Feature: Variable length Pattern match (m to n)
"""
Then the result should be, in any order:
| v.player.name |

Scenario: same src and dst for variable length pattern
When executing query:
"""
MATCH (v)-[e:like*0..0]-(v)
WHERE id(v) == 'Tim Duncan'
RETURN count(*) AS cnt
"""
Then the result should be, in any order:
| cnt |
| 1 |
When executing query:
"""
MATCH (v)-[e:like*0..2]-(v)
WHERE id(v) == 'Tim Duncan'
RETURN count(*) AS cnt
"""
Then the result should be, in any order:
| cnt |
| 5 |
When executing query:
"""
MATCH (v)-[e:like*2..3]-(v)
WHERE id(v) == 'Tim Duncan'
RETURN count(*) AS cnt
"""
Then the result should be, in any order:
| cnt |
| 48 |
When executing query:
"""
MATCH (v)-[e:like*2..3]->(v)
WHERE id(v) == 'Tim Duncan'
RETURN count(*) AS cnt
"""
Then the result should be, in any order:
| cnt |
| 4 |
When executing query:
"""
MATCH (v)-[e:like*0..]->(v)
WHERE id(v) == 'Tim Duncan'
RETURN count(*) AS cnt
"""
Then the result should be, in any order:
| cnt |
| 13 |

0 comments on commit 36b2909

Please sign in to comment.