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 dd93d51
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" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "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:
| t |
| ("Tony Parker" :player{age: 36, name: "Tony Parker"}) |
| ("Luka Doncic" :player{age: 20, name: "Luka Doncic"}) |
| ("Manu Ginobili" :player{age: 41, name: "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 dd93d51

Please sign in to comment.