Actions
Bug #6864
closedbad value for range when using infinity with date or time
Description
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.
Actions
Like0
Like0Like0Like0Like0Like0Like0