Actions
Bug #17945
closedDate::Infinity comparison <=> with Float::INFINITY not symmetric
    Bug #17945:
    Date::Infinity comparison <=> with Float::INFINITY not symmetric
  
Description
Example
require 'date'
p Float::INFINITY <=> Date::Infinity.new
p Date::Infinity.new <=> Float::INFINITY
Expected Result
I expected the comparison to have the same result when the order of values is switched.
0
0
Actual Result
0
1
        
           Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
          Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
          
          
        
        
      
      I've submitted a pull request upstream to fix this: https://github.com/ruby/date/pull/34
        
           Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
          Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
          
          
        
        
      
      - Status changed from Open to Closed
Actions