Bug #7699

rubyspec failed: BigDecimal#divmod Can be reversed with * and +

Added by Kenta Murata over 1 year ago. Updated 3 months ago.

[ruby-core:51441]
Status:Assigned
Priority:High
Assignee:Kenta Murata
Category:ext
Target version:current: 2.2.0
ruby -v:2.0.0dev (2013-01-18 trunk 38875) [x86_64-linux] Backport:

Description

1)
BigDecimal#divmod Can be reversed with * and + FAILED
Expected #
to equal 500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

/mnt/sdb1/ruby/trunk/spec/rubyspec/library/bigdecimal/divmodspec.rb:146:in block (5 levels) in <top (required)>'
/mnt/sdb1/ruby/trunk/spec/rubyspec/library/bigdecimal/divmod_spec.rb:143:in
each'
/mnt/sdb1/ruby/trunk/spec/rubyspec/library/bigdecimal/divmod
spec.rb:143:in block (4 levels) in <top (required)>'
/mnt/sdb1/ruby/trunk/spec/rubyspec/library/bigdecimal/divmod_spec.rb:142:in
each'
/mnt/sdb1/ruby/trunk/spec/rubyspec/library/bigdecimal/divmodspec.rb:142:in block (3 levels) in <top (required)>'
/mnt/sdb1/ruby/trunk/spec/rubyspec/library/bigdecimal/divmod_spec.rb:132:in
block (2 levels) in '
/mnt/sdb1/ruby/trunk/spec/rubyspec/library/bigdecimal/divmod
spec.rb:65:in `'

Finished in 84.747783 seconds

History

#1 Updated by Kenta Murata about 1 year ago

  • ruby -v changed from 2.0.0dev to 2.0.0dev (2013-01-18 trunk 38875) [x86_64-linux]

I cannot reproduce it with ruby 2.0.0dev (2013-01-27 trunk 38957) [x86_64-darwin12.2.0] built by clang.

#2 Updated by Koichi Sasada about 1 year ago

(2013/01/27 15:04), mrkn (Kenta Murata) wrote:

I cannot reproduce it with ruby 2.0.0dev (2013-01-27 trunk 38957) [x86_64-darwin12.2.0] built by clang.

On my environment (*1), I got this failure sometimes (1 or 2 on 10 times
try).

(*1) Debian squeeze,
ruby 2.0.0dev (2013-01-29 trunk 38974) [x86_64-linux]

--
// SASADA Koichi at atdot dot net

#3 Updated by Yusuke Endoh about 1 year ago

  • Target version changed from 2.0.0 to next minor

mrkn, can you fix this issue?

Yusuke Endoh mame@tsg.ne.jp

#4 Updated by Kenta Murata about 1 year ago

I think I cannot fix this until the deadline...

#5 Updated by Yui NARUSE 9 months ago

  • Status changed from Open to Assigned
  • Target version changed from next minor to 2.1.0

#6 Updated by Hiroshi SHIBATA 3 months ago

  • Target version changed from 2.1.0 to current: 2.2.0

Also available in: Atom PDF