aboutsummaryrefslogtreecommitdiff
path: root/testes/db.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/db.lua')
-rw-r--r--testes/db.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/testes/db.lua b/testes/db.lua
index a64a1130..c43243a6 100644
--- a/testes/db.lua
+++ b/testes/db.lua
@@ -351,12 +351,12 @@ assert(g(0,0) == 30)
351 351
352 352
353debug.sethook(nil); 353debug.sethook(nil);
354assert(debug.gethook() == nil) 354assert(not debug.gethook())
355 355
356 356
357-- minimal tests for setuservalue/getuservalue 357-- minimal tests for setuservalue/getuservalue
358do 358do
359 assert(debug.setuservalue(io.stdin, 10) == nil) 359 assert(not debug.setuservalue(io.stdin, 10))
360 local a, b = debug.getuservalue(io.stdin, 10) 360 local a, b = debug.getuservalue(io.stdin, 10)
361 assert(a == nil and not b) 361 assert(a == nil and not b)
362end 362end
@@ -414,7 +414,7 @@ end, "c")
414a:f(1,2,3,4,5) 414a:f(1,2,3,4,5)
415assert(X.self == a and X.a == 1 and X.b == 2 and X.c == nil) 415assert(X.self == a and X.a == 1 and X.b == 2 and X.c == nil)
416assert(XX == 12) 416assert(XX == 12)
417assert(debug.gethook() == nil) 417assert(not debug.gethook())
418 418
419 419
420-- testing access to local variables in return hook (bug in 5.2) 420-- testing access to local variables in return hook (bug in 5.2)