File: //usr/local/rvm/src/ruby-2.5.9/spec/ruby/core/fixnum/size_spec.rb
require File.expand_path('../../../spec_helper', __FILE__)
describe "Fixnum#size" do
platform_is wordsize: 32 do
it "returns the number of bytes in the machine representation of self" do
-1.size.should == 4
0.size.should == 4
4091.size.should == 4
end
end
platform_is wordsize: 64 do
it "returns the number of bytes in the machine representation of self" do
-1.size.should == 8
0.size.should == 8
4091.size.should == 8
end
end
end