From 4f9761b63110d9cb78fa0d04f26e10505ce85d9b Mon Sep 17 00:00:00 2001 From: kikito Date: Sat, 21 Nov 2015 17:13:48 +0100 Subject: [PATCH] fixes __len issue using rawlen instead of #t in a couple places --- spec/inspect_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/inspect_spec.lua b/spec/inspect_spec.lua index 91e46ea..5f9d46e 100644 --- a/spec/inspect_spec.lua +++ b/spec/inspect_spec.lua @@ -78,7 +78,7 @@ describe( 'inspect', function() if has_rawlen then it('handles arrays with a __len metatable correctly (ignoring the __len metatable and using rawlen)', function() local arr = setmetatable({1,2,3}, {__len = function() return nil end}) - assert.equals("{ 1, 2, 3 }", inspect(arr)) + assert.equals("{ 1, 2, 3,\n = {\n __len = \n }\n}", inspect(arr)) end) end