fix problem reported by coverage analysis

This commit is contained in:
Andreas Hofer 2016-03-31 20:20:50 +02:00
parent d051ae061c
commit 61d02902b3

View File

@ -415,11 +415,7 @@ describe( 'inspect', function()
it('allows changing the global tostring', function()
local save = _G.tostring
_G.tostring = function(x)
if type(x) == "string" then
return x
else
return inspect(x)
end
end
local s = tostring({1, 2, 3})
_G.tostring = save