Uncomment tests that pass after bug fixes
Reviewers: buda Reviewed By: buda Differential Revision: https://phabricator.memgraph.io/D255
This commit is contained in:
parent
45ea36d58c
commit
cba99a4344
@ -391,7 +391,6 @@ Feature: Test01
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Scenario: Create and match with label
|
Scenario: Create and match with label
|
||||||
Given graph "graph_01"
|
Given graph "graph_01"
|
||||||
When executing query:
|
When executing query:
|
||||||
|
@ -135,75 +135,92 @@ Feature: Test02
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Scenario: Create node and delete it
|
||||||
|
Given an empty graph
|
||||||
|
And having executed:
|
||||||
|
"""
|
||||||
|
CREATE (n)
|
||||||
|
DELETE (n)
|
||||||
|
"""
|
||||||
|
When executing query:
|
||||||
|
"""
|
||||||
|
MATCH (n)
|
||||||
|
RETURN n
|
||||||
|
"""
|
||||||
|
Then the result should be empty
|
||||||
|
|
||||||
# Scenario: Create node and delete it
|
Scenario: Create node with relationships and delete it, check for relationships
|
||||||
# Given an empty graph
|
Given an empty graph
|
||||||
# And having executed:
|
And having executed:
|
||||||
# """
|
"""
|
||||||
# CREATE (n)
|
CREATE (n)-[:X]->()
|
||||||
# DELETE (n)
|
CREATE (n)-[:Y]->()
|
||||||
# """
|
DETACH DELETE (n)
|
||||||
# When executing query:
|
"""
|
||||||
# """
|
When executing query:
|
||||||
# MATCH (n)
|
"""
|
||||||
# RETURN n
|
MATCH ()-[n]->()
|
||||||
# """
|
RETURN n
|
||||||
# Then the result should be empty
|
"""
|
||||||
|
Then the result should be empty
|
||||||
|
|
||||||
# Scenario: Create node with relationships and delete it, check for relationships
|
Scenario: Create node with relationships and delete it, check for nodes
|
||||||
# Given an empty graph
|
Given an empty graph
|
||||||
# And having executed:
|
And having executed:
|
||||||
# """
|
"""
|
||||||
# CREATE (n)-[:X]->()
|
CREATE (n:l{a: 1})-[:X]->()
|
||||||
# CREATE (n)-[:Y]->()
|
CREATE (n)-[:Y]->()
|
||||||
# DETACH DELETE (n)
|
DETACH DELETE (n)
|
||||||
# """
|
"""
|
||||||
# When executing query:
|
When executing query:
|
||||||
# """
|
"""
|
||||||
# MATCH ()-[n]->()
|
MATCH (n)
|
||||||
# RETURN n
|
RETURN n
|
||||||
# """
|
"""
|
||||||
# Then the result should be empty
|
Then the result should be:
|
||||||
|
| n |
|
||||||
|
|( )|
|
||||||
|
|( )|
|
||||||
|
|
||||||
# Scenario: Create node with relationships and delete it, check for nodes
|
Scenario: Create node with relationships and delete it (without parentheses), check for nodes
|
||||||
# Given an empty graph
|
Given an empty graph
|
||||||
# And having executed:
|
And having executed:
|
||||||
# """
|
"""
|
||||||
# CREATE (n:l{a: 1})-[:X]->()
|
CREATE (n:l{a: 1})-[:X]->()
|
||||||
# CREATE (n)-[:Y]->()
|
CREATE (n)-[:Y]->()
|
||||||
# DETACH DELETE (n)
|
DETACH DELETE n
|
||||||
# """
|
"""
|
||||||
# When executing query:
|
When executing query:
|
||||||
# """
|
"""
|
||||||
# MATCH (n)
|
MATCH (n)
|
||||||
# RETURN n
|
RETURN n
|
||||||
# """
|
"""
|
||||||
# Then the result should be:
|
Then the result should be:
|
||||||
# | n |
|
| n |
|
||||||
# |( )|
|
|( )|
|
||||||
# |( )|
|
|( )|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
# Scenario: Test equal operator
|
|
||||||
# When executing query:
|
Scenario: Test equal operator
|
||||||
# """
|
When executing query:
|
||||||
# CREATE (a)
|
"""
|
||||||
# RETURN 1=1 and 1.0=1.0 and 'abc'='abc' and false=false and a.age is null as n
|
CREATE (a)
|
||||||
# """
|
RETURN 1=1 and 1.0=1.0 and 'abc'='abc' and false=false and a.age is null as n
|
||||||
# Then the result should be:
|
"""
|
||||||
# | n |
|
Then the result should be:
|
||||||
# | true |
|
| n |
|
||||||
#
|
| true |
|
||||||
# Scenario: Test not equal operator
|
|
||||||
# When executing query:
|
Scenario: Test not equal operator
|
||||||
# """
|
When executing query:
|
||||||
# CREATE (a{age: 1})
|
"""
|
||||||
# RETURN not 1<>1 and 1.0<>1.1 and 'abcd'<>'abc' and false<>true and a.age is not null as n
|
CREATE (a{age: 1})
|
||||||
# """
|
RETURN not 1<>1 and 1.0<>1.1 and 'abcd'<>'abc' and false<>true and a.age is not null as n
|
||||||
# Then the result should be:
|
"""
|
||||||
# | n |
|
Then the result should be:
|
||||||
# | true |
|
| n |
|
||||||
|
| true |
|
||||||
|
|
||||||
Scenario: Test greater operator
|
Scenario: Test greater operator
|
||||||
When executing query:
|
When executing query:
|
||||||
@ -298,29 +315,29 @@ Feature: Test02
|
|||||||
| n |
|
| n |
|
||||||
| true |
|
| true |
|
||||||
|
|
||||||
# Scenario: Test exponential operator
|
# Scenario: Test exponential operator
|
||||||
# When executing query:
|
# When executing query:
|
||||||
# """
|
# """
|
||||||
# RETURN 3^2=81^0.5 as n
|
# RETURN 3^2=81^0.5 as n
|
||||||
# """
|
# """
|
||||||
# Then the result should be:
|
# Then the result should be:
|
||||||
# | n |
|
# | n |
|
||||||
# | true |
|
# | true |
|
||||||
#
|
#
|
||||||
# Scenario: Test one big mathematical equation
|
# Scenario: Test one big mathematical equation
|
||||||
# When executing query:
|
# When executing query:
|
||||||
# """
|
# """
|
||||||
# RETURN (3+2*4-3/2%2*10)/5.0^2.0=0.04 as n
|
# RETURN (3+2*4-3/2%2*10)/5.0^2.0=0.04 as n
|
||||||
# """
|
# """
|
||||||
# Then the result should be:
|
# Then the result should be:
|
||||||
# | n |
|
# | n |
|
||||||
# | true |
|
# | true |
|
||||||
|
|
||||||
# Scenario: Test one big logical equation
|
Scenario: Test one big logical equation
|
||||||
# When executing query:
|
When executing query:
|
||||||
# """
|
"""
|
||||||
# RETURN not true or true and false or not ((true xor false or true) and true or false xor true ) as n
|
RETURN not true or true and false or not ((true xor false or true) and true or false xor true ) as n
|
||||||
# """
|
"""
|
||||||
# Then the result should be:
|
Then the result should be:
|
||||||
# | n |
|
| n |
|
||||||
# | false |
|
| false |
|
||||||
|
Loading…
Reference in New Issue
Block a user