Sha256: 7a9462e4ac306fce836658394d121e018b90b5d29bf583189b883092ad2f9a37
Contents?: true
Size: 527 Bytes
Versions: 83
Compression:
Stored size: 527 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' 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
Version data entries
83 entries across 83 versions & 1 rubygems