diff --git a/tck_engine/test_executor.py b/tck_engine/test_executor.py index d3f8b3b2d..acf7d3882 100644 --- a/tck_engine/test_executor.py +++ b/tck_engine/test_executor.py @@ -67,6 +67,9 @@ def main(): behave_options.append("--stop") if args.no_side_effects: behave_options.append("--no-side-effects") + if args.db != "memgraph": + behave_options.append("-e") + behave_options.append("memgraph*") if not args.unstable: behave_options.append("-e") behave_options.append("unstable*") diff --git a/tck_engine/tests/memgraph_V1/features/memgraph.feature b/tck_engine/tests/memgraph_V1/features/memgraph.feature new file mode 100644 index 000000000..6fa071904 --- /dev/null +++ b/tck_engine/tests/memgraph_V1/features/memgraph.feature @@ -0,0 +1,36 @@ +Feature: Memgraph only tests (queries in which we choose to be incompatible with neo4j) + + Scenario: Multiple sets (undefined behaviour) + Given an empty graph + And having executed + """ + CREATE (n{x: 3})-[:X]->(m{x: 5}) + """ + When executing query: + """ + MATCH (n)--(m) SET n.x = n.x + 1 SET m.x = m.x + 2 SET m.x = n.x RETURN n.x + """ + # TODO: Figure out if we can define a test with multiple possible outputs in cucumber, + # until then this test just documents behaviour instead of testing it. + # Then the result should be: + # | n.x | | n.x | + # | 5 | or | 7 | + # | 5 | | 7 | + + Scenario: Multiple comparisons + Given an empty graph + When executing query: + """ + RETURN 1 < 10 > 5 < 7 > 6 < 8 AS x + """ + Then the result should be: + | x | + | true | + + Scenario: Use deleted node + Given an empty graph + When executing query: + """ + CREATE(a:A), (b:B), (c:C), (a)-[:T]->(b) WITH a DETACH DELETE a WITH a MATCH()-[r:T]->() RETURN r + """ + Then an error should be raised diff --git a/tck_engine/tests/memgraph_V1/features/with.feature b/tck_engine/tests/memgraph_V1/features/with.feature index d47b8c6f3..dae2fd9cb 100644 --- a/tck_engine/tests/memgraph_V1/features/with.feature +++ b/tck_engine/tests/memgraph_V1/features/with.feature @@ -147,11 +147,3 @@ Feature: With | av | | 6.5 | | 7.0 | - - Scenario: With test 11: - Given an empty graph - When executing query: - """ - CREATE(a:A), (b:B), (c:C), (a)-[:T]->(b) WITH a DETACH DELETE a WITH a MATCH()-[r:T]->() RETURN r - """ - Then an error should be raised