File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
spec/ruby/library/bigdecimal Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ racc 1.8.1 https://github.com/ruby/racc
2525mutex_m 0.3.0 https://github.com/ruby/mutex_m
2626getoptlong 0.2.1 https://github.com/ruby/getoptlong
2727base64 0.3.0 https://github.com/ruby/base64
28- bigdecimal 3.2.0 https://github.com/ruby/bigdecimal
28+ bigdecimal 3.2.1 https://github.com/ruby/bigdecimal
2929observer 0.1.2 https://github.com/ruby/observer
3030abbrev 0.1.2 https://github.com/ruby/abbrev
3131resolv-replace 0.1.1 https://github.com/ruby/resolv-replace
Original file line number Diff line number Diff line change 2323 ( BigDecimal ( '0.888' ) + BigDecimal ( '0' ) ) . should == BigDecimal ( '0.9' )
2424 ( BigDecimal ( '0.888' ) - BigDecimal ( '0' ) ) . should == BigDecimal ( '0.9' )
2525 ( BigDecimal ( '0.888' ) * BigDecimal ( '3' ) ) . should == BigDecimal ( '3' )
26-
27- skip "TODO: BigDecimal 3.2.0" if BigDecimal ::VERSION == '3.2.0'
2826 ( BigDecimal ( '0.888' ) / BigDecimal ( '3' ) ) . should == BigDecimal ( '0.3' )
2927 end
3028
4846 it "picks the global precision when limit 0 specified" do
4947 BigDecimalSpecs . with_limit ( 3 ) do
5048 BigDecimal ( '0.8888' ) . add ( BigDecimal ( '0' ) , 0 ) . should == BigDecimal ( '0.889' )
51-
52- skip "TODO: BigDecimal 3.2.0" if BigDecimal ::VERSION == '3.2.0'
5349 BigDecimal ( '0.8888' ) . sub ( BigDecimal ( '0' ) , 0 ) . should == BigDecimal ( '0.889' )
5450 BigDecimal ( '0.888' ) . mult ( BigDecimal ( '3' ) , 0 ) . should == BigDecimal ( '2.66' )
5551 BigDecimal ( '0.8888' ) . div ( BigDecimal ( '3' ) , 0 ) . should == BigDecimal ( '0.296' )
Original file line number Diff line number Diff line change 3131
3232 describe "with Object" do
3333 it "tries to coerce the other operand to self" do
34- skip "TODO: BigDecimal 3.2.0" if BigDecimal :: VERSION == '3.2.0'
34+ skip if @method == :div
3535 object = mock ( "Object" )
3636 object . should_receive ( :coerce ) . with ( @one ) . and_return ( [ @one , @two ] )
3737 @one . send ( @method , object , *@object ) . should == BigDecimal ( "0.5" )
You can’t perform that action at this time.
0 commit comments