0c5b2bdc8e
Reviewers: buda, mislav.bradac Reviewed By: buda, mislav.bradac Differential Revision: https://phabricator.memgraph.io/D268
30 lines
679 B
Gherkin
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}) |
|
|
|