[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>

Currently, ruby/spec is maintained mostly by individuals and enjoys the

13 messages 2016/12/13

[ruby-core:78752] [Ruby trunk Bug#12961][Assigned] Bad value for range using infinity for Date or Time

From: shyouhei@...
Date: 2016-12-21 05:57:11 UTC
List: ruby-core #78752
Issue #12961 has been updated by Shyouhei Urabe.

Status changed from Open to Assigned

Matz, please decide how it should work.

----------------------------------------
Bug #12961: Bad value for range using infinity for Date or Time
https://bugs.ruby-lang.org/issues/12961#change-62148

* Author: Damjan Cilen邸ek
* Status: Assigned
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.3.2p217 (2016-11-15 revision 56796) [x86_64-darwin16]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
How to reproduce:

~~~ ruby
-Float::INFINITY...Float::INFINITY # works
Date.today...Float::INFINITY # works
-Float::INFINITY...Date.today # fails with "ArgumentError: bad value for range"
Time.now...Float::INFINITY #fails with "ArgumentError: bad value for range"
-Float::INFINITY...Time.now #fails with "ArgumentError: bad value for range"
~~~

There's one similar bug report for 1.9.3, obviously still not resolved



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next