Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: JRuby 1.6
-
Fix Version/s: None
-
Component/s: Core Classes/Modules, RubySpec
-
Labels:None
-
Number of attachments :
Description
1) Numeric#step Numeric#step with [stop, +Infinity] does not yield when self > stop FAILED Expected [100.0] to equal [] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:198:in `(root)' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyEnumerable.java:1262:in `all?' org/jruby/RubyArray.java:1572:in `each' org/jruby/RubyArray.java:1572:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:1062:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyArray.java:1572:in `each' 2) Numeric#step Numeric#step with [stop, +Infinity] does not yield when stop is -Infinity FAILED Expected [42.0] to equal [] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:203:in `(root)' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyEnumerable.java:1262:in `all?' org/jruby/RubyArray.java:1572:in `each' org/jruby/RubyArray.java:1572:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:1062:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyArray.java:1572:in `each' 3) Numeric#step Numeric#step with [stop, -infinity] yields once if stop is -Infinity FAILED Expected [] to equal [42] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:217:in `(root)' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyEnumerable.java:1262:in `all?' org/jruby/RubyArray.java:1572:in `each' org/jruby/RubyArray.java:1572:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:1062:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyArray.java:1572:in `each' 4) Numeric#step Numeric#step with [stop, -infinity] yields once when self and stop are Infinity FAILED Expected [] to equal [Infinity] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:227:in `(root)' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyEnumerable.java:1262:in `all?' org/jruby/RubyArray.java:1572:in `each' org/jruby/RubyArray.java:1572:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:1062:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyArray.java:1572:in `each'
Issue Links
- duplicates
-
JRUBY-5242
[RubySpec] Numeric#step failures related to +-infinity
-
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
{noformat}
1) Numeric#step Numeric#step with [stop, +Infinity] does not yield when self > stop FAILED Expected [100.0] to equal [] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:198:in `(root)' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyEnumerable.java:1262:in `all?' org/jruby/RubyArray.java:1572:in `each' org/jruby/RubyArray.java:1572:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:1062:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyArray.java:1572:in `each' 2) Numeric#step Numeric#step with [stop, +Infinity] does not yield when stop is -Infinity FAILED Expected [42.0] to equal [] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:203:in `(root)' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyEnumerable.java:1262:in `all?' org/jruby/RubyArray.java:1572:in `each' org/jruby/RubyArray.java:1572:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:1062:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyArray.java:1572:in `each' 3) Numeric#step Numeric#step with [stop, -infinity] yields once if stop is -Infinity FAILED Expected [] to equal [42] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:217:in `(root)' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyEnumerable.java:1262:in `all?' org/jruby/RubyArray.java:1572:in `each' org/jruby/RubyArray.java:1572:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:1062:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyArray.java:1572:in `each' 4) Numeric#step Numeric#step with [stop, -infinity] yields once when self and stop are Infinity FAILED Expected [] to equal [Infinity] /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:227:in `(root)' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyEnumerable.java:1262:in `all?' org/jruby/RubyArray.java:1572:in `each' org/jruby/RubyArray.java:1572:in `each' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:4:in `(root)' org/jruby/RubyKernel.java:1062:in `load' /Users/headius/projects/jruby/spec/ruby/core/numeric/step_spec.rb:56:in `files' org/jruby/RubyKernel.java:2007:in `instance_eval' org/jruby/RubyArray.java:1572:in `each' {noformat} |
Hiro Asari
made changes -
| Link |
This issue duplicates |
Charles Oliver Nutter
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Charles Oliver Nutter [ headius ] | |
| Resolution | Incomplete [ 4 ] |
http://jira.codehaus.org/browse/JRUBY-5242?focusedCommentId=250031&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-250031
Charlie Nutter's comment says that these are guarded specs and won't be fixed in JRuby. I think this can be resolved as "Won't Fix".