diff options
Diffstat (limited to 'testes/errors.lua')
| -rw-r--r-- | testes/errors.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/errors.lua b/testes/errors.lua index a3d0676b..825f37c2 100644 --- a/testes/errors.lua +++ b/testes/errors.lua | |||
| @@ -26,7 +26,7 @@ end | |||
| 26 | 26 | ||
| 27 | local function checkmessage (prog, msg, debug) | 27 | local function checkmessage (prog, msg, debug) |
| 28 | local m = doit(prog) | 28 | local m = doit(prog) |
| 29 | if debug then print(m) end | 29 | if debug then print(m, msg) end |
| 30 | assert(string.find(m, msg, 1, true)) | 30 | assert(string.find(m, msg, 1, true)) |
| 31 | end | 31 | end |
| 32 | 32 | ||
| @@ -289,7 +289,7 @@ end]], "global 'insert'") | |||
| 289 | 289 | ||
| 290 | checkmessage([[ -- tail call | 290 | checkmessage([[ -- tail call |
| 291 | return math.sin("a") | 291 | return math.sin("a") |
| 292 | ]], "'sin'") | 292 | ]], "sin") |
| 293 | 293 | ||
| 294 | checkmessage([[collectgarbage("nooption")]], "invalid option") | 294 | checkmessage([[collectgarbage("nooption")]], "invalid option") |
| 295 | 295 | ||
