aboutsummaryrefslogtreecommitdiff
path: root/testes/coroutine.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/coroutine.lua')
-rw-r--r--testes/coroutine.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/testes/coroutine.lua b/testes/coroutine.lua
index 4881d964..ba394e0c 100644
--- a/testes/coroutine.lua
+++ b/testes/coroutine.lua
@@ -702,7 +702,9 @@ else
702 assert(t.currentline == t.linedefined + 2) 702 assert(t.currentline == t.linedefined + 2)
703 assert(not debug.getinfo(c, 1)) -- no other level 703 assert(not debug.getinfo(c, 1)) -- no other level
704 assert(coroutine.resume(c)) -- run next line 704 assert(coroutine.resume(c)) -- run next line
705 local n,v = debug.getlocal(c, 0, 2) -- check next local 705 local n,v = debug.getlocal(c, 0, 2) -- check vararg table
706 assert(n == "(vararg table)" and v == nil)
707 local n,v = debug.getlocal(c, 0, 3) -- check next local
706 assert(n == "b" and v == 10) 708 assert(n == "b" and v == 10)
707 v = {coroutine.resume(c)} -- finish coroutine 709 v = {coroutine.resume(c)} -- finish coroutine
708 assert(v[1] == true and v[2] == 2 and v[3] == 3 and v[4] == undef) 710 assert(v[1] == true and v[2] == 2 and v[3] == 3 and v[4] == undef)