memgraph/tck_engine/tests/memgraph_V1/features/unstable.feature
Matej Gradiček 0c5b2bdc8e Added unstable option to tck_executor and any error checker in steps/errors.py.
Reviewers: buda, mislav.bradac

Reviewed By: buda, mislav.bradac

Differential Revision: https://phabricator.memgraph.io/D268
2017-04-13 10:24:16 +00:00

30 lines
679 B
Gherkin

Feature: Unstable
Scenario: Fail scenario:
Given an empty graph
When executing query:
"""
CREATE (a:A) CREATE (a:B)
"""
Then the result should be empty
Scenario: Set test:
Given an empty graph
And having executed:
"""
CREATE (a:A{x: 1}), (b:B{x: 2}), (c:C{x: 3}), (a)-[:T]->(b), (b)-[:T]->(c), (c)-[:T]->(a)
"""
And having executed:
"""
MATCH (d)--(e) WHERE abs(d.x - e.x)<=1 SET d.x=d.x+2, e.x=e.x+2
"""
When executing query:
"""
MATCH(x) RETURN x
"""
Then the result should be:
| x |
| (:A{x: 5}) |
| (:B{x: 10}) |
| (:C{x: 7}) |