1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/json/json_fixtures_test.rb: Prevent an "out of range" warning

```
/home/mame/work/ruby/.ext/common/json/common.rb:263: warning: Float 23456789012E666 out of range
```
This commit is contained in:
Yusuke Endoh 2020-07-03 11:45:58 +09:00
parent 05a12297c3
commit 1e039474a2

View file

@ -10,6 +10,7 @@ class JSONFixturesTest < Test::Unit::TestCase
end
def test_passing
verbose_bak, $VERBOSE = $VERBOSE, nil
for name, source in @passed
begin
assert JSON.parse(source),
@ -19,6 +20,8 @@ class JSONFixturesTest < Test::Unit::TestCase
raise e
end
end
ensure
$VERBOSE = verbose_bak
end
def test_failing