Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Jan 14, 2022
1 parent 23832d8 commit 24bf731
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/tck/features/match/SeekById.feature
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,20 @@ Feature: Match seek by id
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)
WHERE id(v) IN ['James Harden', 'Jonathon Simmons', 'Klay Thompson', 'Dejounte Murray']
OR id(v) == 'Yao Ming'
RETURN v
"""
Then the result should be, in any order:
| v |
| ("James Harden" :player{age: 29, name: "James Harden"}) |
| ("Jonathon Simmons" :player{age: 29, name: "Jonathon Simmons"}) |
| ("Klay Thompson" :player{age: 29, name: "Klay Thompson"}) |
| ("Dejounte Murray" :player{age: 29, name: "Dejounte Murray"}) |
| ("Yao Ming" :player{age: 38, name: "Yao Ming"}) |

Scenario: Start from end
When executing query:
Expand Down
14 changes: 14 additions & 0 deletions tests/tck/features/match/SeekById.intVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,20 @@ Feature: Match seek by id
Then the result should be, in any order:
| name |
| "Tim Duncan" |
When executing query:
"""
MATCH (v)
WHERE id(v) IN [hash('James Harden'), hash('Jonathon Simmons'), hash('Klay Thompson'), hash('Dejounte Murray')]
OR id(v) == 'Yao Ming'
RETURN v.player.name as name
"""
Then the result should be, in any order:
| name |
| "James Harden" |
| "Jonathon Simmons" |
| "Klay Thompson" |
| "Dejounte Murray" |
| "Yao Ming" |

Scenario: with arithmetic
When executing query:
Expand Down

0 comments on commit 24bf731

Please sign in to comment.