search for: infinite_range

Displaying 1 result from an estimated 1 matches for "infinite_range".

2007 Feb 02
0
Fwd: [ mocha-Bugs-7834 ] infinte_range.rb makes incorrect assumption about to_f
...ubyforge.org/tracker/?func=detail&atid=7477&aid=7834&group_id=1917 Category: None Group: None >Status: Closed Resolution: None Priority: 3 Submitted By: James Moore (banshee) Assigned to: Nobody (None) Summary: infinte_range.rb makes incorrect assumption about to_f Initial Comment: infinite_range.rb assumes that first and last elements of a Range respond to to_f: def to_s if first.to_f.infinite? then return "at most #{last}" elsif last.to_f.infinite? then return "at least #{first}" else __to_s__ end end This is incorrec...