Eight new BigDecimal RubySpec failures
--------------------------------------

                 Key: JRUBY-2839
                 URL: http://jira.codehaus.org/browse/JRUBY-2839
             Project: JRuby
          Issue Type: Bug
          Components: RubySpec
    Affects Versions: JRuby 1.1.3
         Environment: Latest JRuby 1.1.3
            Reporter: Vladimir Sizikov


{noformat}
1)
BigDecimal.induced_from returns the passed argument when passed a BigDecimal 
ERROR
NoMethodError: undefined method `induced_from' for BigDecimal:Class
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:6
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:4
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:54:in 
`load'

2)
BigDecimal.induced_from converts passed Fixnums to BigDecimal ERROR
NoMethodError: undefined method `induced_from' for BigDecimal:Class
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:12
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:4
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:54:in 
`load'

3)
BigDecimal.induced_from converts passed Bignums to BigDecimal ERROR
NoMethodError: undefined method `induced_from' for BigDecimal:Class
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:18
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:4
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:54:in 
`load'

4)
BigDecimal.induced_from does not try to convert non-Integers to Integer using 
#to_i FAILED
Expected TypeError
but got NoMethodError (undefined method `induced_from' for BigDecimal:Class)
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:25
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:4
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:54:in 
`load'

5)
BigDecimal.induced_from raises a TypeError when passed a non-Integer FAILED
Expected TypeError
but got NoMethodError (undefined method `induced_from' for BigDecimal:Class)
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:29
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:4
/opt/work/rubyspec.git/./1.8/library/bigdecimal/induced_from_spec.rb:54:in 
`load'

6)
BigDecimal.limit use the global limit if no precision is specified FAILED
Expected #<BigDecimal:1a40cfc,'0.888E0',3(4)>
to equal #<BigDecimal:18eef25,'0.9E0',1(4)>

/opt/work/rubyspec.git/./1.8/library/bigdecimal/limit_spec.rb:21
/opt/work/rubyspec.git/./1.8/library/bigdecimal/fixtures/classes.rb:5:in 
`with_limit'
/opt/work/rubyspec.git/./1.8/library/bigdecimal/limit_spec.rb:20
/opt/work/rubyspec.git/./1.8/library/bigdecimal/limit_spec.rb:5
/opt/work/rubyspec.git/./1.8/library/bigdecimal/limit_spec.rb:54:in `load'

7)
BigDecimal.mode returns the appropriate value and continue the computation if 
the flag is false FAILED
Expected false
 to equal true

/opt/work/rubyspec.git/./1.8/library/bigdecimal/mode_spec.rb:18
/opt/work/rubyspec.git/./1.8/library/bigdecimal/mode_spec.rb:4
/opt/work/rubyspec.git/./1.8/library/bigdecimal/mode_spec.rb:54:in `load'

8)
BigDecimal.mode raise an exception if the flag is true FAILED
Expected FloatDomainError but no exception was raised
/opt/work/rubyspec.git/./1.8/library/bigdecimal/mode_spec.rb:23
/opt/work/rubyspec.git/./1.8/library/bigdecimal/mode_spec.rb:4
/opt/work/rubyspec.git/./1.8/library/bigdecimal/mode_spec.rb:54:in `load'
{noformat}

All of these tests pass on MRI.

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