Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Jan 13, 2022
1 parent d84aab2 commit e775ba1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/tck/features/match/SeekById.feature
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,28 @@ Feature: Match seek by id
"""
Then the result should be, in any order:
| v |
When executing query:
"""
MATCH (v:player)
WHERE "Tim Duncan" == v.player.name
OR 23 + 1 == v.noexist.age - 3
RETURN v
"""
Then the result should be, in any order:
| v |
| ("Tim Duncan") |
When executing query:
"""
MATCH (v:player)-[e:like]->(t)
WHERE "Tim Duncan" == v.player.name
OR 25 - 2 == v.player.age
RETURN t
"""
Then the result should be, in any order:
| v |
| ("Tony Parker") |
| ("Luka Doncic") |
| ("Manu Ginobili") |

Scenario: Start from end
When executing query:
Expand Down
10 changes: 10 additions & 0 deletions tests/tck/features/match/SeekById.intVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,16 @@ Feature: Match seek by id
"""
Then the result should be, in any order:
| v |
When executing query:
"""
MATCH (v:player)
WHERE "Tim Duncan" == v.player.name
OR 23 + 1 == v.noexist.age - 3
RETURN v.name as name
"""
Then the result should be, in any order:
| name |
| "Tim Duncan" |

Scenario: with arithmetic
When executing query:
Expand Down

0 comments on commit e775ba1

Please sign in to comment.