ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:47160] [ruby-trunk - Bug #6864][Open] bad value for range when using infinity with date or time
@ 2012-08-13 19:24 slbug (Alex Grebennik)
  2012-08-13 20:01 ` [ruby-core:47161] [ruby-trunk - Bug #6864] " slbug (Alex Grebennik)
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: slbug (Alex Grebennik) @ 2012-08-13 19:24 UTC (permalink / raw)
  To: ruby-core


Issue #6864 has been reported by slbug (Alex Grebennik).

----------------------------------------
Bug #6864: bad value for range when using infinity with date or time
https://bugs.ruby-lang.org/issues/6864

Author: slbug (Alex Grebennik)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]


Steps to reproduce:

 require 'date'
 Range.new(Date.today, 1.0/0.0) # works
 Range.new(-1.0/0.0, Date.today) # fails
 Range.new(Time.now, 1.0/0.0) # fails
 Range.new(-1.0/0.0, Time.now) # fails

Tested on 1.9.3 and trunk. I think this is a bug, because there is no logic error. just ranges without one bound.



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-08-15  1:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-13 19:24 [ruby-core:47160] [ruby-trunk - Bug #6864][Open] bad value for range when using infinity with date or time slbug (Alex Grebennik)
2012-08-13 20:01 ` [ruby-core:47161] [ruby-trunk - Bug #6864] " slbug (Alex Grebennik)
2012-11-03  3:47 ` [ruby-core:48793] [ruby-trunk - Bug #6864][Assigned] " mame (Yusuke Endoh)
2012-11-03  4:38 ` [ruby-core:48795] [ruby-trunk - Bug #6864] " tadf (tadayoshi funaba)
2012-11-03 11:52 ` [ruby-core:48800] " mame (Yusuke Endoh)
2019-08-15  1:52 ` [ruby-core:94363] [Ruby master Bug#6864] " merch-redmine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).