Fixed test for Lua5.1 - can't use %s format spec with table

pull/6/head
rxi 2015-08-15 11:02:43 +01:00
parent 3cfffd299e
commit 7b8aef0090
1 changed files with 1 additions and 1 deletions

View File

@ -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)