aboutsummaryrefslogtreecommitdiff
path: root/testes/db.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/db.lua')
-rw-r--r--testes/db.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/testes/db.lua b/testes/db.lua
index 074a6d0b..941283f7 100644
--- a/testes/db.lua
+++ b/testes/db.lua
@@ -649,6 +649,11 @@ t = debug.getinfo(1) -- main
649assert(t.isvararg == true and t.nparams == 0 and t.nups == 1 and 649assert(t.isvararg == true and t.nparams == 0 and t.nups == 1 and
650 debug.getupvalue(t.func, 1) == "_ENV") 650 debug.getupvalue(t.func, 1) == "_ENV")
651 651
652t = debug.getinfo(math.sin) -- C function
653assert(t.isvararg == true and t.nparams == 0 and t.nups == 0)
654
655t = debug.getinfo(string.gmatch("abc", "a")) -- C closure
656assert(t.isvararg == true and t.nparams == 0 and t.nups > 0)
652 657
653 658
654 659