Skip to content

Commit

Permalink
match tck
Browse files Browse the repository at this point in the history
  • Loading branch information
critical27 committed Sep 20, 2022
1 parent 8d2b013 commit 393cce5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 175 deletions.
18 changes: 9 additions & 9 deletions tests/tck/features/go/GoYieldVertexEdge.feature
Original file line number Diff line number Diff line change
Expand Up @@ -349,22 +349,22 @@ Feature: Go Yield Vertex And Edge Sentence
YIELD edge as e
"""
Then the result should be, in any order, with relax comparison:
| e |
| [:like "Paul Gasol"->"Kobe Bryant" @0 {likeness: 90}] |
| [:like "Paul Gasol"->"Marc Gasol" @0 {likeness: 99}] |
| [:serve "Paul Gasol"->"Bucks"@0{end_year:2020,start_year:2019}]|
| [:serve "Paul Gasol"->"Bulls"@0{end_year:2016,start_year:2014}]|
| [:serve "Paul Gasol"->"Grizzlies"@0{end_year:2008,start_year:2001}]|
| [:serve "Paul Gasol"->"Lakers"@0{end_year:2014,start_year:2008}]|
| [:serve "Paul Gasol"->"Spurs"@0{end_year:2019,start_year:2016}]|
| e |
| [:like "Paul Gasol"->"Kobe Bryant" @0 {likeness: 90}] |
| [:like "Paul Gasol"->"Marc Gasol" @0 {likeness: 99}] |
| [:serve "Paul Gasol"->"Bucks"@0{end_year:2020,start_year:2019}] |
| [:serve "Paul Gasol"->"Bulls"@0{end_year:2016,start_year:2014}] |
| [:serve "Paul Gasol"->"Grizzlies"@0{end_year:2008,start_year:2001}] |
| [:serve "Paul Gasol"->"Lakers"@0{end_year:2014,start_year:2008}] |
| [:serve "Paul Gasol"->"Spurs"@0{end_year:2019,start_year:2016}] |
When executing query:
"""
GO FROM "Paul Gasol" OVER *
WHERE $$.player.name IS EMPTY
YIELD type(edge) as type
"""
Then the result should be, in any order, with relax comparison:
| type |
| type |
When executing query:
"""
GO FROM "Manu Ginobili" OVER * REVERSELY YIELD like.likeness, teammate.start_year, serve.start_year, $$.player.name, type(edge) as type
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/insert/insertVertexOnly.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ Feature: insert vertex without tag
FETCH PROP ON * 1,2 yield vertex AS v;
"""
Then the result should be, in any order, with relax comparison:
| v |
| v |
Then drop the used space
1 change: 0 additions & 1 deletion tests/tck/features/match/Base.feature
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ Feature: Basic match
"""
Then a SemanticError should be raised at runtime: Match clause is not supported to be followed by other cypher clauses

@wtf
Scenario: exists
When executing query:
"""
Expand Down
2 changes: 0 additions & 2 deletions tests/tck/features/match/MatchById.IntVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ Feature: Integer Vid Match By Id
"""
Then the result should be, in any order, with relax comparison:
| Type | Name |
| 'like' | NULL |
| 'serve' | 'Cavaliers' |
| 'serve' | 'Heat' |
| 'serve' | 'Cavaliers' |
Expand All @@ -114,7 +113,6 @@ Feature: Integer Vid Match By Id
"""
Then the result should be, in any order, with relax comparison:
| Type | Name |
| 'like' | NULL |
| 'serve' | 'Cavaliers' |
| 'serve' | 'Heat' |
| 'serve' | 'Cavaliers' |
Expand Down
157 changes: 1 addition & 156 deletions tests/tck/features/match/SeekByEdge.feature
Original file line number Diff line number Diff line change
Expand Up @@ -333,158 +333,6 @@ Feature: Match seek by edge
"""
Then the result should be, in any order:
| player.player.name | team.team.name |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| NULL | NULL |
| "Vince Carter" | "Nets" |
| "Jason Kidd" | "Nets" |
| "Grant Hill" | "Pistons" |
Expand Down Expand Up @@ -1291,6 +1139,7 @@ Feature: Match seek by edge
Then the result should be, in any order:
| p1.player.name | p2.team.name |

@wtf
Scenario Outline: Seek by edge with properties
When executing query:
"""
Expand All @@ -1316,8 +1165,6 @@ Feature: Match seek by edge
| player | team |
| "Paul Gasol" | "Grizzlies" |
| "Jason Kidd" | "Nets" |
| NULL | NULL |
| NULL | NULL |
When executing query:
"""
match (player)-[s:serve]->(team) where s.start_year == 2001 return player.player.name AS player, team.team.name AS team
Expand All @@ -1342,8 +1189,6 @@ Feature: Match seek by edge
| player | team |
| "Paul Gasol" | "Grizzlies" |
| "Jason Kidd" | "Nets" |
| NULL | NULL |
| NULL | NULL |

Scenario Outline: Seek by edge with range with properties
When executing query:
Expand Down
4 changes: 2 additions & 2 deletions tests/tck/features/match/With.feature
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ Feature: With clause
RETURN collect(names)
"""
Then the result should be, in any order, with relax comparison:
| collect(names) |
| ["Tony Parker", "Tiago Splitter", "Shaquille O'Neal", "Marco Belinelli"] |
| collect(names) |
| ["Tony Parker", "Tiago Splitter", "Shaquille O'Neal", "Marco Belinelli", "Manu Ginobili"] |
When profiling query:
"""
MATCH (v:player)
Expand Down
8 changes: 4 additions & 4 deletions tests/tck/features/ttl/TTL.feature
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,13 @@ Feature: TTLTest
FETCH PROP ON person "1" YIELD vertex as node;
"""
Then the result should be, in any order, with relax comparison:
| node |
| node |
When executing query:
"""
FETCH PROP ON person "1" YIELD person.id as id
"""
Then the result should be, in any order:
| id |
| id |
When executing query:
"""
FETCH PROP ON * "1" YIELD person.id, career.id
Expand All @@ -417,7 +417,7 @@ Feature: TTLTest
FETCH PROP ON person "2" YIELD person.id as id
"""
Then the result should be, in any order:
| id |
| id |
When executing query:
"""
FETCH PROP ON career "2" YIELD career.id;
Expand Down Expand Up @@ -486,5 +486,5 @@ Feature: TTLTest
FETCH PROP ON person "1" YIELD person.age as age;
"""
Then the result should be, in any order:
| age |
| age |
And drop the used space

0 comments on commit 393cce5

Please sign in to comment.