Skip to content

Commit

Permalink
updated tck cases to add missing cases that are supposed to be there.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Oct 19, 2022
1 parent c699e28 commit 0e5f0ff
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 16 deletions.
5 changes: 0 additions & 5 deletions tests/tck/features/match/Base.IntVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,6 @@ Feature: Basic match
MATCH (v) return v
"""
Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down.
When executing query:
"""
MATCH (v:player{name: "Tim Duncan"}) return v
"""
Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down.
When executing query:
"""
MATCH (v:player:bachelor) RETURN v
Expand Down
5 changes: 0 additions & 5 deletions tests/tck/features/match/Base.feature
Original file line number Diff line number Diff line change
Expand Up @@ -624,11 +624,6 @@ Feature: Basic match
MATCH (v) return v
"""
Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down.
When executing query:
"""
MATCH (v:player{name: "Tim Duncan"}) return v
"""
Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down.
When executing query:
"""
MATCH (v:player:bachelor) RETURN v
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/match/MatchById.IntVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Feature: Integer Vid Match By Id
| 'serve' | 'Lakers' |
When executing query:
"""
MATCH (v1) -[r:serve]-> (v2:player {name: "Cavaliers"})
MATCH (v1) -[r:serve]-> (v2:team {name: "Cavaliers"})
WHERE id(v1) == hash("LeBron James")
RETURN type(r) AS Type, v2.team.name AS Name
"""
Expand Down
3 changes: 1 addition & 2 deletions tests/tck/features/match/Scan.feature
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ Feature: Match seek by scan
Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down.
When executing query:
"""
MATCH (v{name: "Mary"})
MATCH (v:person)
RETURN v.student.name AS Name
LIMIT 3
"""
Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down.

Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/match/VariableLengthPattern.feature
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Feature: Variable length Pattern match (m to n)
Scenario: multi-steps and filter by node properties
When executing query:
"""
MATCH (v:player{name: 'Tim Duncan'})-[e1:like*1..2]-(v2{name: 'Tony Parker'})-[e2:serve]-(v3{name: 'Spurs'})
MATCH (v:player{name: 'Tim Duncan'})-[e1:like*1..2]-(v2:player{name: 'Tony Parker'})-[e2:serve]-(v3:team{name: 'Spurs'})
RETURN e1, e2
"""
Then the result should be, in any order, with relax comparison:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Feature: Integer Vid Variable length Pattern match (m to n)
Scenario: Integer Vid multi-steps and filter by node properties
When executing query:
"""
MATCH (v:player{name: 'Tim Duncan'})-[e1:like*1..2]-(v2{name: 'Tony Parker'})-[e2:serve]-(v3{name: 'Spurs'})
MATCH (v:player{name: 'Tim Duncan'})-[e1:like*1..2]-(v2:player{name: 'Tony Parker'})-[e2:serve]-(v3:team{name: 'Spurs'})
RETURN e1, e2
"""
Then the result should be, in any order, with relax comparison:
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/yield/parameter.feature
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Feature: Parameter
| "Tony Parker" |
When executing query:
"""
MATCH (v:player)-[:like]->(n{name:$p7.a.b.c})
MATCH (v:player)-[:like]->(n:player{name:$p7.a.b.c})
RETURN n.player.name AS dst LIMIT $p7.a.b.d[0]
"""
Then the result should be, in any order:
Expand Down

0 comments on commit 0e5f0ff

Please sign in to comment.