We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e1489d commit 9607cdcCopy full SHA for 9607cdc
test/test_encoder_compatibility.rb
@@ -50,7 +50,7 @@ def test_encode_float
50
51
# Found via random test, this is the exact representation
52
assert_compat 103876218730131.625
53
- assert_compat -169986783765216.875
+ assert_compat(-169986783765216.875)
54
55
0.upto(1023) do |e|
56
assert_compat(2.0 ** e)
test/test_parser.rb
@@ -102,6 +102,6 @@ def test_parse_NaN_and_Infinity_allowed
102
103
assert_predicate coder.load("NaN"), :nan?
104
assert_equal Float::INFINITY, coder.load("Inf")
105
- assert_equal -Float::INFINITY, coder.load("-Inf")
+ assert_equal(-Float::INFINITY, coder.load("-Inf"))
106
end
107
0 commit comments