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
@ -10,6 +10,7 @@ class JSONFixturesTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_passing
|
def test_passing
|
||||||
|
verbose_bak, $VERBOSE = $VERBOSE, nil
|
||||||
for name, source in @passed
|
for name, source in @passed
|
||||||
begin
|
begin
|
||||||
assert JSON.parse(source),
|
assert JSON.parse(source),
|
||||||
@ -19,6 +20,8 @@ class JSONFixturesTest < Test::Unit::TestCase
|
|||||||
raise e
|
raise e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
ensure
|
||||||
|
$VERBOSE = verbose_bak
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_failing
|
def test_failing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user