Skip to content

Commit

Permalink
issue #207 add test
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Feb 14, 2021
1 parent ad4fc4e commit fe7c76f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/language/ravi_errors.ravi
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@ checkmessage('function x() local s: string; s = (function() return 1 end)() end;
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
checkmessage('table.slice(table.intarray(3), 2, 0xFFFFFFFE)', 'cannot create a slice of given bounds')

print 'Ok'

0 comments on commit fe7c76f

Please sign in to comment.