Skip to content

Commit

Permalink
chore: SemanticError in tck
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu authored Aug 18, 2023
1 parent 0c95b9d commit bb244a8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions tests/tck/features/function/round.feature
Original file line number Diff line number Diff line change
Expand Up @@ -218,27 +218,19 @@ Feature: Round
"""
RETURN round(3.125, 3.2) as result
"""
Then the result should be, in any order:
| result |
| BAD_TYPE |
Then a SemanticError should be raised at runtime: SemanticError: `round(3.125,3.2)' is not a valid expression : Parameter's type error
When executing query:
"""
RETURN round(3.125, 3.2, 42) as result
"""
Then the result should be, in any order:
| result |
| BAD_TYPE |
Then a SemanticError should be raised at runtime: SemanticError: `round(3.125,3.2,42)' is not a valid expression : Parameter's type error
When executing query:
"""
RETURN round("3.124", 3) as result
"""
Then the result should be, in any order:
| result |
| BAD_TYPE |
Then a SemanticError should be raised at runtime: SemanticError: `round("3.125",3)' is not a valid expression : Parameter's type error
When executing query:
"""
RETURN round(1.4, "fs", "half_up") as result
"""
Then the result should be, in any order:
| result |
| BAD_TYPE |
Then a SemanticError should be raised at runtime: SemanticError: `round(1.4,"fs","half_up")' is not a valid expression : Parameter's type error

0 comments on commit bb244a8

Please sign in to comment.