Sha256: ebbb19fa8163c97ffd1ce70041cee1c2839cf8883007726bfff9235ac991c79f
Contents?: true
Size: 499 Bytes
Versions: 52
Compression:
Stored size: 499 Bytes
Contents
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
Version data entries
52 entries across 52 versions & 2 rubygems