aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
Diffstat (limited to 'testes')
-rw-r--r--testes/db.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/testes/db.lua b/testes/db.lua
index 4220b68b..e15a5be6 100644
--- a/testes/db.lua
+++ b/testes/db.lua
@@ -726,6 +726,9 @@ assert(t.isvararg == false and t.nparams == 3 and t.nups == 0)
726t = debug.getinfo(function (a,b,...) return t[a] end, "u") 726t = debug.getinfo(function (a,b,...) return t[a] end, "u")
727assert(t.isvararg == true and t.nparams == 2 and t.nups == 1) 727assert(t.isvararg == true and t.nparams == 2 and t.nups == 1)
728 728
729t = debug.getinfo(function (a,b,...t) t.n = 2; return t[a] end, "u")
730assert(t.isvararg == true and t.nparams == 2 and t.nups == 0)
731
729t = debug.getinfo(1) -- main 732t = debug.getinfo(1) -- main
730assert(t.isvararg == true and t.nparams == 0 and t.nups == 1 and 733assert(t.isvararg == true and t.nparams == 0 and t.nups == 1 and
731 debug.getupvalue(t.func, 1) == "_ENV") 734 debug.getupvalue(t.func, 1) == "_ENV")