diff options
author | tomoya ishida <[email protected]> | 2025-05-31 18:31:17 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2025-05-31 09:31:17 +0000 |
commit | 49f35c917b35d33f10900443837ba79e58414879 (patch) | |
tree | 6d0b70c7d9aeec4a985f727ef56c2b443d0c2e49 /spec/ruby/library/bigdecimal | |
parent | 2097d3794d94cca79e58128f85063ecd169e9ec0 (diff) |
Bump bundled bigdecimal to 3.2.1 (#13482)
Notes
Notes:
Merged-By: tompng <[email protected]>
Diffstat (limited to 'spec/ruby/library/bigdecimal')
-rw-r--r-- | spec/ruby/library/bigdecimal/limit_spec.rb | 4 | ||||
-rw-r--r-- | spec/ruby/library/bigdecimal/shared/quo.rb | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/spec/ruby/library/bigdecimal/limit_spec.rb b/spec/ruby/library/bigdecimal/limit_spec.rb index 61e0d07e68..75cbc8b55c 100644 --- a/spec/ruby/library/bigdecimal/limit_spec.rb +++ b/spec/ruby/library/bigdecimal/limit_spec.rb @@ -23,8 +23,6 @@ describe "BigDecimal.limit" do (BigDecimal('0.888') + BigDecimal('0')).should == BigDecimal('0.9') (BigDecimal('0.888') - BigDecimal('0')).should == BigDecimal('0.9') (BigDecimal('0.888') * BigDecimal('3')).should == BigDecimal('3') - - skip "TODO: BigDecimal 3.2.0" if BigDecimal::VERSION == '3.2.0' (BigDecimal('0.888') / BigDecimal('3')).should == BigDecimal('0.3') end @@ -48,8 +46,6 @@ describe "BigDecimal.limit" do it "picks the global precision when limit 0 specified" do BigDecimalSpecs.with_limit(3) do BigDecimal('0.8888').add(BigDecimal('0'), 0).should == BigDecimal('0.889') - - skip "TODO: BigDecimal 3.2.0" if BigDecimal::VERSION == '3.2.0' BigDecimal('0.8888').sub(BigDecimal('0'), 0).should == BigDecimal('0.889') BigDecimal('0.888').mult(BigDecimal('3'), 0).should == BigDecimal('2.66') BigDecimal('0.8888').div(BigDecimal('3'), 0).should == BigDecimal('0.296') diff --git a/spec/ruby/library/bigdecimal/shared/quo.rb b/spec/ruby/library/bigdecimal/shared/quo.rb index ec6d5b49e9..18ff2fe9a5 100644 --- a/spec/ruby/library/bigdecimal/shared/quo.rb +++ b/spec/ruby/library/bigdecimal/shared/quo.rb @@ -31,7 +31,7 @@ describe :bigdecimal_quo, shared: true do describe "with Object" do it "tries to coerce the other operand to self" do - skip "TODO: BigDecimal 3.2.0" if BigDecimal::VERSION == '3.2.0' + skip if @method == :div object = mock("Object") object.should_receive(:coerce).with(@one).and_return([@one, @two]) @one.send(@method, object, *@object).should == BigDecimal("0.5") |