From 0e749ddedc100e88dad9fb367ade2e56bbf8f785 Mon Sep 17 00:00:00 2001 From: gogotanaka Date: Sat, 14 Mar 2015 11:07:49 +0000 Subject: * math.c (math_gamma): optimization for passed small integer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_math.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_math.rb b/test/ruby/test_math.rb index be86579c55..a4237ecff2 100644 --- a/test/ruby/test_math.rb +++ b/test/ruby/test_math.rb @@ -240,6 +240,8 @@ class TestMath < Test::Unit::TestCase check(2, Math.gamma(3)) check(15 * sqrt_pi / 8, Math.gamma(3.5)) check(6, Math.gamma(4)) + check(1.1240007277776077e+21, Math.gamma(23)) + check(2.5852016738885062e+22, Math.gamma(24)) # no SEGV [ruby-core:25257] 31.upto(65) do |i| -- cgit v1.2.3