Range#== fails for float/integer comparisons
--------------------------------------------

                 Key: JRUBY-1030
                 URL: http://jira.codehaus.org/browse/JRUBY-1030
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0RC2
         Environment: OS X 10.4.9, Java 1.5, JRuby rev 3672
            Reporter: Daniel Berger
            Priority: Minor
             Fix For: JRuby 1.0.0RC3


In MRI floats of the "dot zero" variety are treated as ints apparently:
{noformat}
Range.new(1.0, 99.0) == Range.new(1, 99) # => true
Range.new(1.0, 99.1) == Range.new(1, 99) # => false
{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