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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-04-21 22:04:20 +09:00
parent bf11f87599
commit 2268405fe6
+1 -1
View File
@@ -60,7 +60,7 @@ end
assert('Math.log10') do
assert_float(0.0, Math.log10(1))
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
assert('Math.sqrt') do