File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 3232 send ( @method , -123 ) . ceil ( -2 ) . should . eql? ( -100 )
3333 send ( @method , -123 ) . ceil ( -3 ) . should . eql? ( 0 )
3434 end
35+
36+ ruby_bug "#20654" , "" ..."3.4" do
37+ it "returns 10**precision.abs when precision.abs is larger than the number digits of self" do
38+ send ( @method , 123 ) . ceil ( -20 ) . should . eql? ( 100000000000000000000 )
39+ send ( @method , 123 ) . ceil ( -50 ) . should . eql? ( 100000000000000000000000000000000000000000000000000 )
40+ end
41+ end
3542 end
3643end
Original file line number Diff line number Diff line change 3232 send ( @method , -123 ) . floor ( -2 ) . should . eql? ( -200 )
3333 send ( @method , -123 ) . floor ( -3 ) . should . eql? ( -1000 )
3434 end
35+
36+ ruby_bug "#20654" , "" ..."3.4" do
37+ it "returns -(10**precision.abs) when self is negative and precision.abs is larger than the number digits of self" do
38+ send ( @method , -123 ) . floor ( -20 ) . should . eql? ( -100000000000000000000 )
39+ send ( @method , -123 ) . floor ( -50 ) . should . eql? ( -100000000000000000000000000000000000000000000000000 )
40+ end
41+ end
3542 end
3643end
You can’t perform that action at this time.
0 commit comments