mirror of https://github.com/rxi/json.lua.git
Fixed test for Lua5.1 - can't use %s format spec with table
parent
3cfffd299e
commit
7b8aef0090
|
@ -194,7 +194,7 @@ test("encode invalid", function()
|
||||||
}
|
}
|
||||||
for i, v in ipairs(t) do
|
for i, v in ipairs(t) do
|
||||||
local status, res = pcall(json.encode, v)
|
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
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue