Sha256: 8d7c46a6e54e0192d6af3978c000cfa5c2a28ac2a4f808f210570f6f7e815a84
Contents?: true
Size: 404 Bytes
Versions: 29
Compression:
Stored size: 404 Bytes
Contents
describe "Kernel#eql?" do it "returns true if obj and anObject are the same object." do o1 = Object.new o2 = Object.new o1.eql?(o1).should be_true o2.eql?(o2).should be_true o1.eql?(o2).should be_false end it "returns true if obj and anObject have the same value." do :hola.eql?(1).should be_false 1.eql?(1).should be_true :hola.eql?(:hola).should be_true end end
Version data entries
29 entries across 29 versions & 1 rubygems