mirror of
https://github.com/TangentFoxy/inspect.lua.git
synced 2025-07-28 02:52:18 +00:00
fix problem with recursive tables when using the 'process' option
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user