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:
parent
05a12297c3
commit
1e039474a2
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue