You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a problem with the Julian day of a DateTime object when the latter has been initialized specifying a negative offset. With JRuby 1.7.13 and MRI 2.1.2:
The bug isn't reproducible with any Rational object. It looks like it should be negative and close to 0 (e.g. -5 / 24.0 works but 5 / 24.0 don't). Here's a failing test:
@robin850 For what it's worth, the JRuby 1.7.x branch strives to be Ruby 1.9.3 compatible, so I don't think that the original comparison between 1.7.3 and MRI 2.1.2 is correct.
Regardless, the failing test you've provided will pass on JRuby 9.0.0.0:
I don't think that the original comparison between 1.7.3 and MRI 2.1.2 is correct
Actually this should pass even under 1.9.3 AFAIK.
Regardless, the failing test you've provided will pass on JRuby 9.0.0.0
What do you think about adding the provided regression test (or as a RubySpec as it looks like you are directly merging MRI's tests now) even though it's already fixed ?
Hello,
There seems to be a problem with the Julian day of a
DateTime
object when the latter has been initialized specifying a negative offset. With JRuby 1.7.13 and MRI 2.1.2:The bug isn't reproducible with any Rational object. It looks like it should be negative and close to 0 (e.g. -5 / 24.0 works but 5 / 24.0 don't). Here's a failing test:
Have a nice day.
The text was updated successfully, but these errors were encountered: