Content deleted Content added
fix noglobal error |
localise more globals |
||
Line 10:
local errmsg = ''
local success, details = pcall(function ()
local suite = ScribuntoUnit:new()
suite:assertEquals(expected, actual)
Line 16:
if not success and (type(details) ~= 'table' or not details.ScribuntoUnit) then -- a real error, not a failed assertion
local errmsg = 'Lua error: ' .. tostring(details)
end
|