diff options
Diffstat (limited to 'testes/db.lua')
-rw-r--r-- | testes/db.lua | 5 |
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 | |||
649 | assert(t.isvararg == true and t.nparams == 0 and t.nups == 1 and | 649 | assert(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 | ||
652 | t = debug.getinfo(math.sin) -- C function | ||
653 | assert(t.isvararg == true and t.nparams == 0 and t.nups == 0) | ||
654 | |||
655 | t = debug.getinfo(string.gmatch("abc", "a")) -- C closure | ||
656 | assert(t.isvararg == true and t.nparams == 0 and t.nups > 0) | ||
652 | 657 | ||
653 | 658 | ||
654 | 659 | ||