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
1 changed files with 3 additions and 0 deletions

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