mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
test/math.rb: 10**30 could cause integer overflow; ref #5420
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user