[RubySpec] Numeric#step failures related to +-infinity ------------------------------------------------------
Key: JRUBY-5242 URL: http://jira.codehaus.org/browse/JRUBY-5242 Project: JRuby Issue Type: Bug Components: Core Classes/Modules, RubySpec Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter {noformat} 2) Numeric#step with [stop, +infinity] does not yield when self > stop FAILED Expected [100.0, 42.0] to equal [] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:175:in `(root)' org/jruby/RubyObject.java:1204:in `instance_eval' org/jruby/RubyEnumerable.java:1264:in `all_p' org/jruby/RubyArray.java:1655:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:153:in `(root)' org/jruby/RubyKernel.java:1066:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyObject.java:1204:in `instance_eval' org/jruby/RubyArray.java:1655:in `each' 3) Numeric#step with [stop, -infinity] yields once if self > stop FAILED Expected [] to equal [42, 42] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:206:in `(root)' org/jruby/RubyObject.java:1204:in `instance_eval' org/jruby/RubyEnumerable.java:1264:in `all_p' org/jruby/RubyArray.java:1655:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:200:in `(root)' org/jruby/RubyKernel.java:1066:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyObject.java:1204:in `instance_eval' org/jruby/RubyArray.java:1655:in `each' 4) Numeric#step with [stop, -infinity] yields once when self equals stop FAILED Expected [] to equal [42, Infinity] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:213:in `(root)' org/jruby/RubyObject.java:1204:in `instance_eval' org/jruby/RubyEnumerable.java:1264:in `all_p' org/jruby/RubyArray.java:1655:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:200:in `(root)' org/jruby/RubyKernel.java:1066:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyObject.java:1204:in `instance_eval' org/jruby/RubyArray.java:1655:in `each' {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email