aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic.lua b/tests/basic.lua
index 59b5940..20865cf 100644
--- a/tests/basic.lua
+++ b/tests/basic.lua
@@ -427,7 +427,7 @@ local function chunk2(linda)
427 for k,v in pairs(info) do PRINT(k,v) end 427 for k,v in pairs(info) do PRINT(k,v) end
428 428
429 -- some assertions are adjusted depending on config.strip_functions, because it changes what we get out of debug.getinfo 429 -- some assertions are adjusted depending on config.strip_functions, because it changes what we get out of debug.getinfo
430 assert(info.nups == (_VERSION == "Lua 5.1" and 3 or 4), "bad nups") -- upvalue + config + PRINT + _ENV (Lua > 5.2 only) 430 assert(info.nups == (_VERSION == "Lua 5.1" and 4 or 5), "bad nups " .. info.nups) -- upvalue + config + PRINT + tostring + _ENV (Lua > 5.2 only)
431 assert(info.what == "Lua", "bad what") 431 assert(info.what == "Lua", "bad what")
432 --assert(info.name == "chunk2") -- name does not seem to come through 432 --assert(info.name == "chunk2") -- name does not seem to come through
433 assert(config.strip_functions and info.source=="=?" or string.match(info.source, "^@.*basic.lua$"), "bad info.source") 433 assert(config.strip_functions and info.source=="=?" or string.match(info.source, "^@.*basic.lua$"), "bad info.source")