Bigdecimal#add never uses the precision arg, fails new rubyspec tests
---------------------------------------------------------------------

                 Key: JRUBY-2692
                 URL: http://jira.codehaus.org/browse/JRUBY-2692
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.2
         Environment: Latest JRuby 1.1.2
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.1.3


The second argument specifies the number of precision digits to use, and JRuby 
simply ignores it, always calculate and return with full precision:
This leads to a number of rubyspec failures:

{noformat}
mspec -f s -t j spec/ruby/1.8/library/bigdecimal/add_spec.rb

BigDecimal#add
- returns a + b with given precision (FAILED - 1)
- returns a + [Fixnum value] with given precision (ERROR - 2)
- returns a + [Bignum value] with given precision (ERROR - 3)
{noformat}

Will fix.

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