Skip to content

Commit

Permalink
Corrected assertion on error type
Browse files Browse the repository at this point in the history
The given queries have the correct syntax but only fail when evaluating the value of the parameter.
  • Loading branch information
arnefischereit committed Sep 8, 2023
1 parent 6b0b527 commit 835de63
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Feature: ReturnSkipLimit2 - Limit
RETURN p.name AS name
LIMIT $_limit
"""
Then a SyntaxError should be raised at runtime: NegativeIntegerArgument
Then a ArgumentError should be raised at runtime: NegativeIntegerArgument

Scenario: [11] Negative parameter for LIMIT with ORDER BY should fail
Given any graph
Expand All @@ -217,7 +217,7 @@ Feature: ReturnSkipLimit2 - Limit
RETURN p.name AS name
ORDER BY name LIMIT $_limit
"""
Then a SyntaxError should be raised at runtime: NegativeIntegerArgument
Then a ArgumentError should be raised at runtime: NegativeIntegerArgument

Scenario: [12] Fail when using negative value in LIMIT 1
Given any graph
Expand Down Expand Up @@ -259,7 +259,7 @@ Feature: ReturnSkipLimit2 - Limit
RETURN p.name AS name
LIMIT $_limit
"""
Then a SyntaxError should be raised at runtime: InvalidArgumentType
Then a ArgumentError should be raised at runtime: InvalidArgumentType

Scenario: [15] Floating point parameter for LIMIT with ORDER BY should fail
Given any graph
Expand All @@ -276,7 +276,7 @@ Feature: ReturnSkipLimit2 - Limit
RETURN p.name AS name
ORDER BY name LIMIT $_limit
"""
Then a SyntaxError should be raised at runtime: InvalidArgumentType
Then a ArgumentError should be raised at runtime: InvalidArgumentType

Scenario: [16] Fail when using floating point in LIMIT 1
Given any graph
Expand Down

0 comments on commit 835de63

Please sign in to comment.