diff options
Diffstat (limited to 'testes')
-rw-r--r-- | testes/closure.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/closure.lua b/testes/closure.lua index cdeaebaa..c2453677 100644 --- a/testes/closure.lua +++ b/testes/closure.lua | |||
@@ -242,7 +242,7 @@ end | |||
242 | 242 | ||
243 | assert(debug.upvalueid(foo1, 1)) | 243 | assert(debug.upvalueid(foo1, 1)) |
244 | assert(debug.upvalueid(foo1, 2)) | 244 | assert(debug.upvalueid(foo1, 2)) |
245 | assert(not pcall(debug.upvalueid, foo1, 3)) | 245 | assert(not debug.upvalueid(foo1, 3)) |
246 | assert(debug.upvalueid(foo1, 1) == debug.upvalueid(foo2, 2)) | 246 | assert(debug.upvalueid(foo1, 1) == debug.upvalueid(foo2, 2)) |
247 | assert(debug.upvalueid(foo1, 2) == debug.upvalueid(foo2, 1)) | 247 | assert(debug.upvalueid(foo1, 2) == debug.upvalueid(foo2, 1)) |
248 | assert(debug.upvalueid(foo3, 1)) | 248 | assert(debug.upvalueid(foo3, 1)) |