aboutsummaryrefslogtreecommitdiff
path: root/testes/coroutine.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testes/coroutine.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/coroutine.lua b/testes/coroutine.lua
index 5674a4dd..ca30011f 100644
--- a/testes/coroutine.lua
+++ b/testes/coroutine.lua
@@ -107,7 +107,7 @@ function filter (p, g)
107 end) 107 end)
108end 108end
109 109
110local x = gen(100) 110local x = gen(80)
111local a = {} 111local a = {}
112while 1 do 112while 1 do
113 local n = x() 113 local n = x()
@@ -116,7 +116,7 @@ while 1 do
116 x = filter(n, x) 116 x = filter(n, x)
117end 117end
118 118
119assert(#a == 25 and a[#a] == 97) 119assert(#a == 22 and a[#a] == 79)
120x, a = nil 120x, a = nil
121 121
122 122