Skip to content

Commit c1ac669

Browse files
authored
Merge pull request #837 from etiennebarrie/too-big-float
Remove warning about too big Float
2 parents 8df38e0 + e881e55 commit c1ac669

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

test/json/fixtures/pass1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"real": -9876.543210,
1313
"e": 0.123456789e-12,
1414
"E": 1.234567890E+34,
15-
"": 23456789012E666,
15+
"": 23456789012E66,
1616
"zero": 0,
1717
"one": 1,
1818
"space": " ",

test/json/json_parser_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def test_parse_numbers
128128
assert_equal(1.0/0, parse('Infinity', :allow_nan => true))
129129
assert_raise(ParserError) { parse('-Infinity') }
130130
assert_equal(-1.0/0, parse('-Infinity', :allow_nan => true))
131+
capture_output { assert_equal(Float::INFINITY, parse("23456789012E666")) }
131132
end
132133

133134
def test_parse_bigdecimals

0 commit comments

Comments
 (0)