Bump bundled bigdecimal to 3.2.1 (#13482)
This commit is contained in:
parent
2097d3794d
commit
49f35c917b
Notes:
git
2025-05-31 09:31:31 +00:00
Merged-By: tompng <tomoyapenguin@gmail.com>
2
NEWS.md
2
NEWS.md
@ -135,7 +135,7 @@ The following bundled gems are updated.
|
||||
* net-smtp 0.5.1
|
||||
* rbs 3.9.4
|
||||
* base64 0.3.0
|
||||
* bigdecimal 3.2.0
|
||||
* bigdecimal 3.2.1
|
||||
* drb 2.2.3
|
||||
* syslog 0.3.0
|
||||
* csv 3.3.4
|
||||
|
@ -25,7 +25,7 @@ racc 1.8.1 https://github.com/ruby/racc
|
||||
mutex_m 0.3.0 https://github.com/ruby/mutex_m
|
||||
getoptlong 0.2.1 https://github.com/ruby/getoptlong
|
||||
base64 0.3.0 https://github.com/ruby/base64
|
||||
bigdecimal 3.2.0 https://github.com/ruby/bigdecimal
|
||||
bigdecimal 3.2.1 https://github.com/ruby/bigdecimal
|
||||
observer 0.1.2 https://github.com/ruby/observer
|
||||
abbrev 0.1.2 https://github.com/ruby/abbrev
|
||||
resolv-replace 0.1.1 https://github.com/ruby/resolv-replace
|
||||
|
@ -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')
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user