Sha256: 4ea985007a9cc169ed79de7c4d55b73ac6a59d6ab11e810daae5cd25a6c76227
Contents?: true
Size: 347 Bytes
Versions: 23
Compression:
Stored size: 347 Bytes
Contents
describe "Kernel#equal?" do it "returns true only if obj and other are the same object" do o1 = Object.new o2 = Object.new o1.equal?(o1).should == true o2.equal?(o2).should == true o1.equal?(o2).should == false nil.equal?(nil).should == true o1.equal?(nil).should == false nil.equal?(o2).should == false end end
Version data entries
23 entries across 23 versions & 1 rubygems