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
|
@ -31,15 +31,15 @@ describe "Integer#lcm" do
|
|||
-100.lcm(-100).should == 100
|
||||
end
|
||||
|
||||
it "accepts a Bignum argument" do
|
||||
it "accepts an Integer argument" do
|
||||
bignum = 9999**99
|
||||
bignum.should be_kind_of(Bignum)
|
||||
bignum.should be_kind_of(Integer)
|
||||
99.lcm(bignum).should == bignum
|
||||
end
|
||||
|
||||
it "works if self is a Bignum" do
|
||||
it "works if self is an Integer" do
|
||||
bignum = 9999**99
|
||||
bignum.should be_kind_of(Bignum)
|
||||
bignum.should be_kind_of(Integer)
|
||||
bignum.lcm(99).should == bignum
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue