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
When using Time#- passing a Time object, the precision is inconsistent with what MRI returns. In the following example, the nanosecond precision (9 decimals) should be used but for a strange reason, the number of digits is greater than 9. Looking at the code, this condition is met ; thus, the opMinus method is triggered so this line is as well but the number of digits returned is not the expected one:
Hello,
When using
Time#-
passing aTime
object, the precision is inconsistent with what MRI returns. In the following example, the nanosecond precision (9 decimals) should be used but for a strange reason, the number of digits is greater than 9. Looking at the code, this condition is met ; thus, theopMinus
method is triggered so this line is as well but the number of digits returned is not the expected one:This has been tested with JRuby 1.7.13. A RubySpec should be added here ; even if the problem is not exactly the same, the spec should fit.
Have a nice day.
The text was updated successfully, but these errors were encountered: