From 7b8aef009071a99f57bcfc1cdbfc2fd4b734606c Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 15 Aug 2015 11:02:43 +0100 Subject: [PATCH] Fixed test for Lua5.1 - can't use %s format spec with table --- test/test.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.lua b/test/test.lua index 726a4b1..e2a46c2 100644 --- a/test/test.lua +++ b/test/test.lua @@ -194,7 +194,7 @@ test("encode invalid", function() } for i, v in ipairs(t) do local status, res = pcall(json.encode, v) - assert( not status, fmt("encoding '%s' did not result in an error", v) ) + assert( not status, fmt("encoding idx %d did not result in an error", i) ) end end)