diff --git a/tests/tck/features/match/With.feature b/tests/tck/features/match/With.feature index 57a9de0c5b7..3da990efdd9 100644 --- a/tests/tck/features/match/With.feature +++ b/tests/tck/features/match/With.feature @@ -158,6 +158,24 @@ Feature: With clause RETURN * """ Then a SemanticError should be raised at runtime: RETURN * is not allowed when there are no variables in scope + When executing query: + """ + MATCH (:player {name:"Chris Paul"})-[:serve]->(b) + WITH collect(b) as teams + RETURN teams + """ + Then the result should be, in any order, with relax comparison: + | teams | + | [("Rockets" :team{name: "Rockets"}), ("Clippers" :team{name: "Clippers"}), ("Hornets" :team{name: "Hornets"})] | + When executing query: + """ + MATCH (:player {name:"Chris Paul"})-[e:like]->(b) + WITH avg(e.likeness) as avg, max(e.likeness) as max + RETURN avg, max + """ + Then the result should be, in any order, with relax comparison: + | avg | max | + | 78.28571428571429 | 99 | @skip Scenario: with match return