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
|
@ -22,9 +22,9 @@ describe "String#bytes" do
|
|||
@utf8_ascii.bytes.to_a.size.should == @utf8_ascii.bytesize
|
||||
end
|
||||
|
||||
it "returns bytes as Fixnums" do
|
||||
@ascii.bytes.to_a.each {|b| b.should be_an_instance_of(Fixnum)}
|
||||
@utf8_ascii.bytes { |b| b.should be_an_instance_of(Fixnum) }
|
||||
it "returns bytes as Integers" do
|
||||
@ascii.bytes.to_a.each {|b| b.should be_an_instance_of(Integer)}
|
||||
@utf8_ascii.bytes { |b| b.should be_an_instance_of(Integer) }
|
||||
end
|
||||
|
||||
it "agrees with #unpack('C*')" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue