Skip to content

Commit

Permalink
Fixed test for Lua5.1 - can't use %s format spec with table
Browse files Browse the repository at this point in the history
  • Loading branch information
rxi committed Aug 15, 2015
1 parent 3cfffd2 commit 7b8aef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7b8aef0

Please sign in to comment.