Added additional case in 'numbers' test

pull/6/head
rxi 2015-08-15 11:56:02 +01:00
parent 9beca8a5bd
commit 50f4512c2c
1 changed files with 6 additions and 5 deletions

View File

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