Project

General

Profile

Actions

Bug #7699

closed

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

Added by mrkn (Kenta Murata) about 11 years ago. Updated over 9 years ago.

Status:
Rejected
Target version:
ruby -v:
2.0.0dev (2013-01-18 trunk 38875) [x86_64-linux]
Backport:
[ruby-core:51441]

Description

BigDecimal#divmod Can be reversed with * and + FAILED
Expected #BigDecimal:f430418,'0.5E5556',9(27)
to equal 500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

/mnt/sdb1/ruby/trunk/spec/rubyspec/library/bigdecimal/divmod_spec.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/divmod_spec.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 <top (required)>'
/mnt/sdb1/ruby/trunk/spec/rubyspec/library/bigdecimal/divmod_spec.rb:65:in `<top (required)>'

Finished in 84.747783 seconds

Updated by mrkn (Kenta Murata) about 11 years 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.

Updated by ko1 (Koichi Sasada) about 11 years 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

Updated by mame (Yusuke Endoh) about 11 years ago

  • Target version changed from 2.0.0 to 2.6

mrkn, can you fix this issue?

--
Yusuke Endoh

Updated by mrkn (Kenta Murata) about 11 years ago

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

Updated by naruse (Yui NARUSE) over 10 years ago

  • Status changed from Open to Assigned
  • Target version changed from 2.6 to 2.1.0

Updated by hsbt (Hiroshi SHIBATA) about 10 years ago

  • Target version changed from 2.1.0 to 2.2.0

Updated by hsbt (Hiroshi SHIBATA) over 9 years ago

  • Status changed from Assigned to Rejected

I can't reproduce this issue on linux and osx.
If you still have this issue, please reopen this.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0