Uncomment tests that pass after bug fixes

Reviewers: buda

Reviewed By: buda

Differential Revision: https://phabricator.memgraph.io/D255
This commit is contained in:
Mislav Bradac 2017-04-10 17:10:05 +02:00
parent 45ea36d58c
commit cba99a4344
2 changed files with 106 additions and 90 deletions

View File

@ -391,7 +391,6 @@ Feature: Test01
Scenario: Create and match with label
Given graph "graph_01"
When executing query:

View File

@ -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
# 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 with relationships and delete it, check for relationships
Given an empty graph
And having executed:
"""
CREATE (n)-[:X]->()
CREATE (n)-[:Y]->()
DETACH DELETE (n)
"""
When executing query:
"""
MATCH ()-[n]->()
RETURN n
"""
Then the result should be empty
# Scenario: Create node with relationships and delete it, check for relationships
# Given an empty graph
# And having executed:
# """
# CREATE (n)-[:X]->()
# CREATE (n)-[:Y]->()
# DETACH DELETE (n)
# """
# When executing query:
# """
# MATCH ()-[n]->()
# RETURN n
# """
# Then the result should be empty
Scenario: Create node with relationships and delete it, check for nodes
Given an empty graph
And having executed:
"""
CREATE (n:l{a: 1})-[:X]->()
CREATE (n)-[:Y]->()
DETACH DELETE (n)
"""
When executing query:
"""
MATCH (n)
RETURN n
"""
Then the result should be:
| n |
|( )|
|( )|
# Scenario: Create node with relationships and delete it, check for nodes
# Given an empty graph
# And having executed:
# """
# CREATE (n:l{a: 1})-[:X]->()
# CREATE (n)-[:Y]->()
# DETACH DELETE (n)
# """
# When executing query:
# """
# MATCH (n)
# RETURN n
# """
# Then the result should be:
# | n |
# |( )|
# |( )|
#
Scenario: Create node with relationships and delete it (without parentheses), check for nodes
Given an empty graph
And having executed:
"""
CREATE (n:l{a: 1})-[:X]->()
CREATE (n)-[:Y]->()
DETACH DELETE n
"""
When executing query:
"""
MATCH (n)
RETURN n
"""
Then the result should be:
| n |
|( )|
|( )|
# 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
# """
# Then the result should be:
# | n |
# | true |
#
# 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
# """
# Then the result should be:
# | n |
# | true |
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
"""
Then the result should be:
| n |
| true |
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
"""
Then the result should be:
| n |
| true |
Scenario: Test greater operator
When executing query:
@ -298,29 +315,29 @@ Feature: Test02
| n |
| true |
# Scenario: Test exponential operator
# When executing query:
# """
# RETURN 3^2=81^0.5 as n
# """
# Then the result should be:
# | n |
# | true |
#
# Scenario: Test one big mathematical equation
# When executing query:
# """
# RETURN (3+2*4-3/2%2*10)/5.0^2.0=0.04 as n
# """
# Then the result should be:
# | n |
# | true |
# Scenario: Test exponential operator
# When executing query:
# """
# RETURN 3^2=81^0.5 as n
# """
# Then the result should be:
# | n |
# | true |
#
# Scenario: Test one big mathematical equation
# When executing query:
# """
# RETURN (3+2*4-3/2%2*10)/5.0^2.0=0.04 as n
# """
# Then the result should be:
# | n |
# | true |
# Scenario: Test one big logical equation
# 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
# """
# Then the result should be:
# | n |
# | false |
Scenario: Test one big logical equation
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
"""
Then the result should be:
| n |
| false |