Skip to content

Commit 96ff5c5

Browse files
author
Anil Maurya
committed
Add test to verify issue #17
1 parent 66e3a15 commit 96ff5c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/fast_jsonparser_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,9 @@ def test_nested_usage
7777
break
7878
end
7979
end
80+
81+
def test_large_integer_parsing
82+
result = FastJsonparser.parse("[{ \"duration\": 7386425359 }]")
83+
assert_equal result[0][:duration], 7386425359
84+
end
8085
end

0 commit comments

Comments
 (0)