Updated test for lume.trace()

This commit is contained in:
rxi 2014-03-30 18:38:09 +01:00
parent e6246834b7
commit 94977b4f7e

View File

@ -319,11 +319,11 @@ tests["lume.trace"] = function()
print = function(x)
file, line, msg = x:match("%[(.-):(.-)%] (.*)")
end
lume.trace("Hi world")
lume.trace("Hi world", 123.456, 1)
print = oldprint
testeq( file:match(".lua$"), ".lua" )
testeq( tonumber(line) ~= nil, true )
testeq( msg, "Hi world" )
testeq( msg, "Hi world 123.46 1" )
end
-- lume.dostring