diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 10:38:11 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 10:38:11 +0200 |
commit | 03cb6d50e4943e88bc634c1b0315b05b12cf92fa (patch) | |
tree | 047302864dceab842bdbbdc4ac06d5284bfd3bd2 | |
parent | 6a2d1112c3cf64b46f7c60d7878d5cc8101fc5cd (diff) | |
download | lanes-03cb6d50e4943e88bc634c1b0315b05b12cf92fa.tar.gz lanes-03cb6d50e4943e88bc634c1b0315b05b12cf92fa.tar.bz2 lanes-03cb6d50e4943e88bc634c1b0315b05b12cf92fa.zip |
Fix basic.lua
-rw-r--r-- | tests/basic.lua | 2 |
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") |