2.2: TestMath#test_gamma test failure (MinGW)
Running tests against ruby_2_2 branch, mingw-w64 4.7.2, Windows 7 x64:
TestMath#test_gamma [C:/Users/Luis/Code/ruby/ruby/test/ruby/test_math.rb:237]: Math.gamma(2147483648) should be INF. Expected NaN to be infinite?.
Updated by wanabe (_ wanabe) over 5 years ago
tgamma() of mingw32-w64 is buggy in x > 709.782712893384 because
pow(x, 0.5 * x - 0.25) / exp(x) == Inf / Inf == NaN.
It doesn't care of
x > 172.
I guess the ticket should be "3rd party's issue", shouldn't it?
If you're going to insist, how about using missing/tgamma.c on mingw32-w64?