diff options
author | gogotanaka <gogotanaka@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-14 11:07:49 +0000 |
---|---|---|
committer | gogotanaka <gogotanaka@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-14 11:07:49 +0000 |
commit | 0e749ddedc100e88dad9fb367ade2e56bbf8f785 (patch) | |
tree | 2aa5804c3ea6585943b28993627e1b30a5a3dddb /test | |
parent | ffe896c3cb0872baf301a5c21b90059f33d3d7a0 (diff) | |
download | ruby-0e749ddedc100e88dad9fb367ade2e56bbf8f785.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_math.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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| |