From d60e4422aade06bc80e0e363676a81c6f01e716e Mon Sep 17 00:00:00 2001 From: xtcyclist <7731943+xtcyclist@users.noreply.github.com> Date: Thu, 1 Sep 2022 22:26:24 +0800 Subject: [PATCH] add a tck test case. --- tests/tck/features/expression/NotIn.feature | 23 ++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tests/tck/features/expression/NotIn.feature b/tests/tck/features/expression/NotIn.feature index 6fce6111f2c..c6e458e7289 100644 --- a/tests/tck/features/expression/NotIn.feature +++ b/tests/tck/features/expression/NotIn.feature @@ -50,7 +50,28 @@ Feature: Not In Expression Then the result should be, in any order: | r | | false | - + + Scenario: Match Not In Set + Given a graph with space named "nba" + When executing query: + """ + match p0 = (n0)<-[e0:`like`|`teammate`|`teammate`]->(n1) + where id(n0) == "Suns" + and not (e0.like.likeness in [e0.teammate.end_year, ( e0.teammate.start_year ) ] ) + or not (( "" ) not ends with ( "" + "" + "" )) + and ("" not in ( "" + "" + "" + "" )) + or (e0.teammate.start_year > ( e0.teammate.end_year )) + and (( ( ( e0.like.likeness ) ) ) / e0.teammate.start_year > + e0.teammate.start_year) + or (e0.like.likeness*e0.teammate.start_year%e0.teammate.end_year+ + ( ( e0.teammate.start_year ) ) > e0.teammate.end_year) + or (( ( ( ( e0.teammate.end_year ) ) ) ) in [9.8978784E7 ] ) + return e0.like.likeness, e0.teammate.start_year, e0.teammate.start_year, + e0.teammate.end_year, e0.teammate.end_year + limit 91 + """ + Then a SemanticError should be raised at runtime: Type error `("" NOT IN "")' + Scenario: Using NOT IN list in GO Given a graph with space named "nba" When executing query: