mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use Integer instead of Fixnum/Bignum
This commit is contained in:
parent
fb8f011422
commit
9c73c75624
144 changed files with 392 additions and 390 deletions
|
@ -6,7 +6,7 @@ describe :bigdecimal_to_int , shared: true do
|
|||
-> { BigDecimal("NaN").send(@method) }.should raise_error(FloatDomainError)
|
||||
end
|
||||
|
||||
it "returns Integer or Bignum otherwise" do
|
||||
it "returns Integer or Integer otherwise" do
|
||||
BigDecimal("3E-20001").send(@method).should == 0
|
||||
BigDecimal("2E4000").send(@method).should == 2 * 10 ** 4000
|
||||
BigDecimal("2").send(@method).should == 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue