Sha256: ed508575a668d5387cd25b24f3ed5f2e5a54bc0874a4fe1f4353b919b0049a40
Contents?: true
Size: 579 Bytes
Versions: 7
Compression:
Stored size: 579 Bytes
Contents
require 'spec_helper' require 'mspec/guards' require 'mspec/helpers' describe Object, "#bignum_value" do it "returns a value that is an instance of Bignum on any platform" do bignum_value.should == 0x8000_0000_0000_0000 end it "returns the default value incremented by the argument" do bignum_value(42).should == 0x8000_0000_0000_002a end end describe Object, "#nan_value" do it "returns NaN" do nan_value.nan?.should be_true end end describe Object, "#infinity_value" do it "returns Infinity" do infinity_value.infinite?.should == 1 end end
Version data entries
7 entries across 7 versions & 1 rubygems