Skip to content

Commit

Permalink
issue #208 add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Feb 14, 2021
1 parent 8bd404f commit 2c44bdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/language/ravi_errors.ravi
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,7 @@ checkmessage('local function x(y: closure) end x(1)', 'closure expected')
checkmessage('local function x() local s: string; s = 1 end', "Invalid assignment: string expected near 'end'")
checkmessage('function x() local s: string; s = (function() return 1 end)() end; x()', 'string expected')
checkmessage('function x() local s: User; s = (function() return 1 end)() end; x()', 'type mismatch: expected User')
checkmessage('table.intarray(0xFFFFFFFF)', 'array length out of range') -- Note only valid when int is 32 bits
checkmessage('table.numarray(0xFFFFFFFF)', 'array length out of range') -- Note only valid when int is 32 bits

print 'Ok'

0 comments on commit 2c44bdd

Please sign in to comment.