Skip to content

Commit d47f624

Browse files
znzmatzbot
authored andcommitted
[ruby/json] Reduce warnings
``` ../test/json/json_ryu_fallback_test.rb:177: warning: ambiguous first argument; put parentheses or a space even after `-` operator ../test/json/json_ryu_fallback_test.rb:178: warning: ambiguous first argument; put parentheses or a space even after `-` operator ../test/json/json_ryu_fallback_test.rb:179: warning: ambiguous first argument; put parentheses or a space even after `-` operator ../test/json/json_ryu_fallback_test.rb:180: warning: ambiguous first argument; put parentheses or a space even after `-` operator ../test/json/json_ryu_fallback_test.rb:181: warning: ambiguous first argument; put parentheses or a space even after `-` operator ``` ruby/json@18d54757d3
1 parent ebb1109 commit d47f624

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/json/json_ryu_fallback_test.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ def test_large_exponent_numbers
174174
assert_equal Float::INFINITY, JSON.parse("1e4294967295")
175175
assert_equal Float::INFINITY, JSON.parse("1e4294967297")
176176

177-
assert_equal -Float::INFINITY, JSON.parse("-1e4294967296")
178-
assert_equal -0.0, JSON.parse("-1e-4294967296")
179-
assert_equal -0.0, JSON.parse("-99999999999999999e-4294967296")
180-
assert_equal -Float::INFINITY, JSON.parse("-1e4294967295")
181-
assert_equal -Float::INFINITY, JSON.parse("-1e4294967297")
177+
assert_equal(-Float::INFINITY, JSON.parse("-1e4294967296"))
178+
assert_equal(-0.0, JSON.parse("-1e-4294967296"))
179+
assert_equal(-0.0, JSON.parse("-99999999999999999e-4294967296"))
180+
assert_equal(-Float::INFINITY, JSON.parse("-1e4294967295"))
181+
assert_equal(-Float::INFINITY, JSON.parse("-1e4294967297"))
182182
end
183183
end

0 commit comments

Comments
 (0)