Skip to content

Commit

Permalink
Added additional case in 'numbers' test
Browse files Browse the repository at this point in the history
  • Loading branch information
rxi committed Aug 15, 2015
1 parent 9beca8a commit 50f4512
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50f4512

Please sign in to comment.