diff options
Diffstat (limited to 'testes')
| -rw-r--r-- | testes/db.lua | 3 |
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) | |||
| 726 | t = debug.getinfo(function (a,b,...) return t[a] end, "u") | 726 | t = debug.getinfo(function (a,b,...) return t[a] end, "u") |
| 727 | assert(t.isvararg == true and t.nparams == 2 and t.nups == 1) | 727 | assert(t.isvararg == true and t.nparams == 2 and t.nups == 1) |
| 728 | 728 | ||
| 729 | t = debug.getinfo(function (a,b,...t) t.n = 2; return t[a] end, "u") | ||
| 730 | assert(t.isvararg == true and t.nparams == 2 and t.nups == 0) | ||
| 731 | |||
| 729 | t = debug.getinfo(1) -- main | 732 | t = debug.getinfo(1) -- main |
| 730 | assert(t.isvararg == true and t.nparams == 0 and t.nups == 1 and | 733 | assert(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") |
