From caff5e4066935392fee634063714c59063d9e2ba Mon Sep 17 00:00:00 2001 From: florijan Date: Wed, 9 Aug 2017 10:20:46 +0200 Subject: [PATCH] map_operations.feature added to QA Reviewers: buda, mferencevic Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D651 --- .../features/map_operations.feature | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/qa/tck_engine/tests/memgraph_V1/features/map_operations.feature diff --git a/tests/qa/tck_engine/tests/memgraph_V1/features/map_operations.feature b/tests/qa/tck_engine/tests/memgraph_V1/features/map_operations.feature new file mode 100644 index 000000000..c6569154f --- /dev/null +++ b/tests/qa/tck_engine/tests/memgraph_V1/features/map_operations.feature @@ -0,0 +1,28 @@ +Feature: Map operators + + Scenario: Returning a map + When executing query: + """ + RETURN {a: 1, b: 'bla', c: [1, 2], d: {a: 42}} as result + """ + Then the result should be: + | result | + | {a: 1, b: 'bla', c: [1, 2], d: {a: 42}} | + + + Scenario: Storing a map property fails + When executing query: + """ + CREATE (n {property: {a: 1, b: 2}}) + """ + Then an error should be raised + + + Scenario: A property lookup on a map literal + When executing query: + """ + WITH {a: 1, b: 'bla', c: {d: 42}} AS x RETURN x.a, x.c.d + """ + Then the result should be: + | x.a | x.c.d | + | 1 | 42 |