Date::Infinity#== returns false when other object is Date::Infinity #284

Closed
dkubb opened this Issue May 14, 2010 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

dkubb commented May 14, 2010

When you do:

Date::Infinity.new <=> Date::Infinity.new

The result is 0 (which is correct) but when you do:

Date::Infinity.new == Date::Infinity.new

The result is false, which is incorrect.

Contributor

dkubb commented May 14, 2010

I should also mention that I tested this with rubinius 1.0.0-rc5.

Owner

evanphx commented May 14, 2010

This appears to be because we define a Numeric#== but 1.8 doesn't. This is a big fix and will have to be dealt with post 1.0.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment