-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigMath.log fails MRI 2.2 tests #2148
Labels
Milestone
Comments
@petervandenabeele If you're still interested in helping, here's a nice opportunity :-) |
Failing test in question: def test_log
assert_equal(0, BigMath.log(BigDecimal("1.0"), 10))
assert_in_epsilon(Math.log(10)*1000, BigMath.log(BigDecimal("1e1000"), 10))
assert_raise(Math::DomainError) {BigMath.log(BigDecimal("0"), 10)}
assert_raise(Math::DomainError) {BigMath.log(BigDecimal("-1"), 10)}
assert_separately(%w[-rbigdecimal], <<-SRC)
begin
x = BigMath.log(BigDecimal("1E19999999999999"), 10)
rescue FloatDomainError
else
unless x.infinite?
assert_in_epsilon(Math.log(10)*19999999999999, x)
end
end
SRC
end |
headius
added a commit
that referenced
this issue
Nov 8, 2014
This is a flaw in java.math.BigDecimal.
|
Merged
expected to be fixed at #3221 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The most recent tests from MRI trunk (2.2) fail on JRuby's BigMath.log with the following error:
The test can be run like this to reproduce:
I will exclude this failure and reference this bug. We do have many other failures currently excluded; at some point we should make an effort to fix these :-\
It's possible some pass and no longer need to be excluded. I have not audited them in a while.
The text was updated successfully, but these errors were encountered: