diff options
Diffstat (limited to 'testes/db.lua')
-rw-r--r-- | testes/db.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testes/db.lua b/testes/db.lua index 02b96aca..d3758c41 100644 --- a/testes/db.lua +++ b/testes/db.lua | |||
@@ -345,7 +345,7 @@ function f(a,b) | |||
345 | local _, y = debug.getlocal(1, 2) | 345 | local _, y = debug.getlocal(1, 2) |
346 | assert(x == a and y == b) | 346 | assert(x == a and y == b) |
347 | assert(debug.setlocal(2, 3, "pera") == "AA".."AA") | 347 | assert(debug.setlocal(2, 3, "pera") == "AA".."AA") |
348 | assert(debug.setlocal(2, 4, "maçã") == "B") | 348 | assert(debug.setlocal(2, 4, "manga") == "B") |
349 | x = debug.getinfo(2) | 349 | x = debug.getinfo(2) |
350 | assert(x.func == g and x.what == "Lua" and x.name == 'g' and | 350 | assert(x.func == g and x.what == "Lua" and x.name == 'g' and |
351 | x.nups == 2 and string.find(x.source, "^@.*db%.lua$")) | 351 | x.nups == 2 and string.find(x.source, "^@.*db%.lua$")) |
@@ -373,9 +373,9 @@ function g (...) | |||
373 | local arg = {...} | 373 | local arg = {...} |
374 | do local a,b,c; a=math.sin(40); end | 374 | do local a,b,c; a=math.sin(40); end |
375 | local feijao | 375 | local feijao |
376 | local AAAA,B = "xuxu", "mamão" | 376 | local AAAA,B = "xuxu", "abacate" |
377 | f(AAAA,B) | 377 | f(AAAA,B) |
378 | assert(AAAA == "pera" and B == "maçã") | 378 | assert(AAAA == "pera" and B == "manga") |
379 | do | 379 | do |
380 | local B = 13 | 380 | local B = 13 |
381 | local x,y = debug.getlocal(1,5) | 381 | local x,y = debug.getlocal(1,5) |
@@ -928,7 +928,7 @@ do | |||
928 | local cl = countlines(rest) | 928 | local cl = countlines(rest) |
929 | -- at most 10 lines in first part, 11 in second, plus '...' | 929 | -- at most 10 lines in first part, 11 in second, plus '...' |
930 | assert(cl <= 10 + 11 + 1) | 930 | assert(cl <= 10 + 11 + 1) |
931 | local brk = string.find(rest, "%.%.%.") | 931 | local brk = string.find(rest, "%.%.%.\t%(skip") |
932 | if brk then -- does message have '...'? | 932 | if brk then -- does message have '...'? |
933 | local rest1 = string.sub(rest, 1, brk) | 933 | local rest1 = string.sub(rest, 1, brk) |
934 | local rest2 = string.sub(rest, brk, #rest) | 934 | local rest2 = string.sub(rest, brk, #rest) |