diff options
Diffstat (limited to 'testes/errors.lua')
-rw-r--r-- | testes/errors.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testes/errors.lua b/testes/errors.lua index 88918df7..f975b3dd 100644 --- a/testes/errors.lua +++ b/testes/errors.lua | |||
@@ -532,7 +532,8 @@ local function testrep (init, rep, close, repc, finalresult) | |||
532 | end | 532 | end |
533 | s = init .. string.rep(rep, 500) | 533 | s = init .. string.rep(rep, 500) |
534 | local res, msg = load(s) -- 500 levels not ok | 534 | local res, msg = load(s) -- 500 levels not ok |
535 | assert(not res and string.find(msg, "too many")) | 535 | assert(not res and (string.find(msg, "too many") or |
536 | string.find(msg, "overflow"))) | ||
536 | end | 537 | end |
537 | 538 | ||
538 | testrep("local a; a", ",a", "= 1", ",1") -- multiple assignment | 539 | testrep("local a; a", ",a", "= 1", ",1") -- multiple assignment |