diff options
Diffstat (limited to 'testes/db.lua')
-rw-r--r-- | testes/db.lua | 6 |
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 | ||
353 | debug.sethook(nil); | 353 | debug.sethook(nil); |
354 | assert(debug.gethook() == nil) | 354 | assert(not debug.gethook()) |
355 | 355 | ||
356 | 356 | ||
357 | -- minimal tests for setuservalue/getuservalue | 357 | -- minimal tests for setuservalue/getuservalue |
358 | do | 358 | do |
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) |
362 | end | 362 | end |
@@ -414,7 +414,7 @@ end, "c") | |||
414 | a:f(1,2,3,4,5) | 414 | a:f(1,2,3,4,5) |
415 | assert(X.self == a and X.a == 1 and X.b == 2 and X.c == nil) | 415 | assert(X.self == a and X.a == 1 and X.b == 2 and X.c == nil) |
416 | assert(XX == 12) | 416 | assert(XX == 12) |
417 | assert(debug.gethook() == nil) | 417 | assert(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) |