Skip to content

Commit

Permalink
updated the tck case.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Nov 24, 2022
1 parent 9485a99 commit b57a847
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/tck/features/match/RedefinedNode.feature
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,17 @@ Feature: Redefined symbols
Then a SemanticError should be raised at runtime: `e': Redefined alias

Scenario: Redefined alias in with
Given a graph with space named "nba"
And having executed:
"""
insert edge like (likeness) values "Tim Duncan"->"Tim Duncan":(100);
insert edge like (likeness) values "Carmelo Anthony"->"Carmelo Anthony":(100);
"""
When executing query:
"""
MATCH (n0)-[e0]->(n0) WHERE (id(n0) IN [7,10]) with * RETURN *
MATCH (n0)-[e0]->(n0) WHERE (id(n0) IN ["Tim Duncan", "Carmelo Anthony" ]) with * RETURN *
"""
Then the result should be, in any order:
| n0 | e0 |
| n0 | e0 |
| ("Tim Duncan" :player{age: 42, name: "Tim Duncan"} :bachelor{name: "Tim Duncan", speciality: "psychology"}) | [:like "Tim Duncan"->"Tim Duncan" @0 {likeness: 100}] |
| ("Carmelo Anthony" :player{age: 34, name: "Carmelo Anthony"}) | [:like "Carmelo Anthony"->"Carmelo Anthony" @0 {likeness: 100}] |

0 comments on commit b57a847

Please sign in to comment.