[1.9] (0.0/0).arg should return NaN
-----------------------------------

                 Key: JRUBY-4475
                 URL: http://jira.codehaus.org/browse/JRUBY-4475
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules, Ruby 1.9, RubySpec
    Affects Versions: JRuby 1.4, JRuby 1.5
         Environment: github trunk, Java 6, Mac OS X 10.6.2
            Reporter: Hiro Asari
            Priority: Minor
             Fix For: JRuby 1.5
         Attachments: 
0001-0.0-0-.arg-should-return-NaN.-see-http-redmine.ruby-.patch

See also http://redmine.ruby-lang.org/issues/show/1715

This is causing the following spec failures. The attached patch solves the 
problem.

{noformat}
1)
Numeric#arg returns NaN if self is NaN ERROR
NoMethodError: undefined method `nan?' for 0:Fixnum
/Users/asari/Development/src/jruby/spec/ruby/shared/complex/numeric/arg.rb:22
/Users/asari/Development/src/jruby/spec/ruby/core/numeric/arg_spec.rb:5
/Users/asari/Development/src/jruby/spec/ruby/core/numeric/arg_spec.rb:4
/Users/asari/Development/src/jruby/spec/ruby/core/numeric/arg_spec.rb:55:in 
`load'
3)
Numeric#polar returns [NaN, NaN] if self is NaN ERROR
NoMethodError: undefined method `nan?' for 0:Fixnum
/Users/asari/Development/src/jruby/spec/ruby/shared/complex/numeric/polar.rb:49
/Users/asari/Development/src/jruby/spec/ruby/core/numeric/polar_spec.rb:5
/Users/asari/Development/src/jruby/spec/ruby/core/numeric/polar_spec.rb:4
/Users/asari/Development/src/jruby/spec/ruby/core/numeric/polar_spec.rb:55:in 
`load'
{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


Reply via email to