From: merch-redmine@... Date: 2021-06-15T17:42:36+00:00 Subject: [ruby-core:104284] [Ruby master Bug#17945] Date::Infinity comparison <=> with Float::INFINITY not symmetric Issue #17945 has been updated by jeremyevans0 (Jeremy Evans). I've submitted a pull request upstream to fix this: https://github.com/ruby/date/pull/34 ---------------------------------------- Bug #17945: Date::Infinity comparison <=> with Float::INFINITY not symmetric https://bugs.ruby-lang.org/issues/17945#change-92496 * Author: bjfish (Brandon Fish) * Status: Open * Priority: Normal * ruby -v: 3.0.0, 2.7.3 * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- **Example** ``` ruby 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. ``` shell 0 0 ``` **Actual Result** ``` shell 0 1 ``` -- https://bugs.ruby-lang.org/ Unsubscribe: