test/math.rb: `10**30` could cause integer overflow; ref #5420

parent bf11f875
...@@ -60,7 +60,7 @@ end ...@@ -60,7 +60,7 @@ end
assert('Math.log10') do assert('Math.log10') do
assert_float(0.0, Math.log10(1)) assert_float(0.0, Math.log10(1))
assert_float(1.0, Math.log10(10)) assert_float(1.0, Math.log10(10))
assert_float(30.0, Math.log10(10**30)) assert_float(30.0, Math.log10(10.0**30))
end end
assert('Math.sqrt') do assert('Math.sqrt') do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment