Fix tests

pull/46/head
Lars Mueller 2022-12-17 16:58:14 +01:00
parent 48c75f6036
commit d26f748bea
1 changed files with 6 additions and 6 deletions

View File

@ -36,12 +36,12 @@ end
test("numbers", function()
local t = {
[ "123.456" ] = 123.456,
[ "-123" ] = -123,
[ "-567.765" ] = -567.765,
[ "12.3" ] = 12.3,
[ "0" ] = 0,
[ "0.10000000012" ] = 0.10000000012,
[ "123.456" ] = 123.456,
[ "-123" ] = -123,
[ "-567.76499999999999" ] = -567.765,
[ "12.300000000000001" ] = 12.3,
[ "0" ] = 0,
[ "0.10000000012" ] = 0.10000000012,
}
for k, v in pairs(t) do
local res = json.decode(k)