Skip to content

Commit

Permalink
Use "Given any graph" where possible - moving to background.
Browse files Browse the repository at this point in the history
  • Loading branch information
sherfert committed Jul 23, 2019
1 parent 1de4bb3 commit 0932541
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions tck/features/SkipLimitAcceptance.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@

Feature: SkipLimitAcceptanceTest

Scenario: SKIP with an expression that depends on variables should fail
Background:
Given any graph

Scenario: SKIP with an expression that depends on variables should fail
When executing query:
"""
MATCH (n) RETURN n SKIP n.count
"""
Then a SyntaxError should be raised at compile time: NonConstantExpression

Scenario: LIMIT with an expression that depends on variables should fail
Given any graph
When executing query:
"""
MATCH (n) RETURN n LIMIT n.count
"""
Then a SyntaxError should be raised at compile time: NonConstantExpression

Scenario: SKIP with an expression that does not depend on variables
Given any graph
And having executed:
"""
UNWIND range(1, 10) AS i
Expand All @@ -67,7 +67,6 @@ Feature: SkipLimitAcceptanceTest


Scenario: LIMIT with an expression that does not depend on variables
Given an empty graph
And having executed:
"""
UNWIND range(1, 3) AS i
Expand All @@ -85,7 +84,6 @@ Feature: SkipLimitAcceptanceTest
And no side effects

Scenario: Negative parameter for LIMIT should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand All @@ -102,7 +100,6 @@ Feature: SkipLimitAcceptanceTest
Then a SyntaxError should be raised at runtime: NegativeIntegerArgument

Scenario: Negative parameter for LIMIT with ORDER BY should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand All @@ -119,7 +116,6 @@ Feature: SkipLimitAcceptanceTest
Then a SyntaxError should be raised at runtime: NegativeIntegerArgument

Scenario: Negative LIMIT should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand All @@ -134,7 +130,6 @@ Feature: SkipLimitAcceptanceTest
Then a SyntaxError should be raised at compile time: NegativeIntegerArgument

Scenario: Negative parameter for SKIP should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand All @@ -151,7 +146,6 @@ Feature: SkipLimitAcceptanceTest
Then a SyntaxError should be raised at runtime: NegativeIntegerArgument

Scenario: Negative SKIP should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand All @@ -166,7 +160,6 @@ Feature: SkipLimitAcceptanceTest
Then a SyntaxError should be raised at compile time: NegativeIntegerArgument

Scenario: Floating point parameter for LIMIT should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand All @@ -183,7 +176,6 @@ Feature: SkipLimitAcceptanceTest
Then a SyntaxError should be raised at runtime: InvalidArgumentType

Scenario: Floating point parameter for LIMIT with ORDER BY should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand All @@ -200,7 +192,6 @@ Feature: SkipLimitAcceptanceTest
Then a SyntaxError should be raised at runtime: InvalidArgumentType

Scenario: Floating point LIMIT should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand All @@ -215,7 +206,6 @@ Feature: SkipLimitAcceptanceTest
Then a SyntaxError should be raised at compile time: InvalidArgumentType

Scenario: Floating point parameter for SKIP should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand All @@ -232,7 +222,6 @@ Feature: SkipLimitAcceptanceTest
Then a SyntaxError should be raised at runtime: InvalidArgumentType

Scenario: Floating point SKIP should fail
Given any graph
And having executed:
"""
CREATE (s:Person {name: 'Steven'}),
Expand Down

0 comments on commit 0932541

Please sign in to comment.