diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-07-03 11:48:46 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-07-03 11:48:46 +0900 |
commit | 438d85e0407902cf76c497662be5381ea7f9d4c5 (patch) | |
tree | 75582edf8e2fd193bfcc8dc8796027d47e12fc98 | |
parent | 380699de48bf697e9c9610858d4c897ebb4bd79f (diff) | |
download | json-438d85e0407902cf76c497662be5381ea7f9d4c5.tar.gz |
test/json/json_fixtures_test.rb: Prevent an "out of range" warning
with `make test-all RUBYOPT=-w`
```
/home/mame/work/ruby/.ext/common/json/common.rb:263: warning: Float 23456789012E666 out of range
```
-rw-r--r-- | tests/json_fixtures_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/json_fixtures_test.rb b/tests/json_fixtures_test.rb index b2a1ec8..845abb4 100644 --- a/tests/json_fixtures_test.rb +++ b/tests/json_fixtures_test.rb @@ -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 |