Bignum#divmod sometimes retuns single value, not array
------------------------------------------------------

                 Key: JRUBY-1937
                 URL: http://jira.codehaus.org/browse/JRUBY-1937
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC1
         Environment: Latest JRuby 1.1RC1 from trunk
            Reporter: Vladimir Sizikov


{noformat}
p (-10**50).divmod(10**40 + 1)
{noforamt}

In MRI:
[-10000000000, 10000000000]

In JRuby:
-10000000000

divmod *always* should return an array, not a single value.
I've also added this case to rubyspec, and now we fail the test. :)

-- 
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