diff options
Diffstat (limited to 'testes')
-rw-r--r-- | testes/db.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/db.lua b/testes/db.lua index 3c821ab7..8e13373c 100644 --- a/testes/db.lua +++ b/testes/db.lua | |||
@@ -701,7 +701,7 @@ assert(debug.traceback(print, 4) == print) | |||
701 | assert(string.find(debug.traceback("hi", 4), "^hi\n")) | 701 | assert(string.find(debug.traceback("hi", 4), "^hi\n")) |
702 | assert(string.find(debug.traceback("hi"), "^hi\n")) | 702 | assert(string.find(debug.traceback("hi"), "^hi\n")) |
703 | assert(not string.find(debug.traceback("hi"), "'debug.traceback'")) | 703 | assert(not string.find(debug.traceback("hi"), "'debug.traceback'")) |
704 | assert(string.find(debug.traceback("hi", 0), "'debug.traceback'")) | 704 | assert(string.find(debug.traceback("hi", 0), "'traceback'")) |
705 | assert(string.find(debug.traceback(), "^stack traceback:\n")) | 705 | assert(string.find(debug.traceback(), "^stack traceback:\n")) |
706 | 706 | ||
707 | do -- C-function names in traceback | 707 | do -- C-function names in traceback |
@@ -829,7 +829,7 @@ end | |||
829 | 829 | ||
830 | co = coroutine.create(function (x) f(x) end) | 830 | co = coroutine.create(function (x) f(x) end) |
831 | a, b = coroutine.resume(co, 3) | 831 | a, b = coroutine.resume(co, 3) |
832 | t = {"'coroutine.yield'", "'f'", "in function <"} | 832 | t = {"'yield'", "'f'", "in function <"} |
833 | while coroutine.status(co) == "suspended" do | 833 | while coroutine.status(co) == "suspended" do |
834 | checktraceback(co, t) | 834 | checktraceback(co, t) |
835 | a, b = coroutine.resume(co) | 835 | a, b = coroutine.resume(co) |