Skip to content

Commit 9607cdc

Browse files
committed
Fix warnings
1 parent 8e1489d commit 9607cdc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test_encoder_compatibility.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_encode_float
5050

5151
# Found via random test, this is the exact representation
5252
assert_compat 103876218730131.625
53-
assert_compat -169986783765216.875
53+
assert_compat(-169986783765216.875)
5454

5555
0.upto(1023) do |e|
5656
assert_compat(2.0 ** e)

test/test_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ def test_parse_NaN_and_Infinity_allowed
102102

103103
assert_predicate coder.load("NaN"), :nan?
104104
assert_equal Float::INFINITY, coder.load("Inf")
105-
assert_equal -Float::INFINITY, coder.load("-Inf")
105+
assert_equal(-Float::INFINITY, coder.load("-Inf"))
106106
end
107107
end

0 commit comments

Comments
 (0)