fix problem with recursive tables when using the 'process' option

This commit is contained in:
Andreas Hofer
2016-03-29 22:14:10 +02:00
parent a998635207
commit d372d2ab08
2 changed files with 30 additions and 15 deletions

View File

@@ -315,6 +315,12 @@ describe( 'inspect', function()
}, items)
end)
it('handles recursive tables correctly', function()
local tbl = { 1,2,3}
tbl.loop = tbl
inspect(tbl, { process=function(x) return x end})
end)
end)
describe('metatables', function()