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

Version Path
opal-0.4.4 spec/rubyspec/core/kernel/equal_spec.rb
opal-0.4.3 spec/rubyspec/core/kernel/equal_spec.rb
opal-0.4.2 spec/rubyspec/core/kernel/equal_spec.rb
opal-0.4.1 spec/rubyspec/core/kernel/equal_spec.rb
opal-0.4.0 spec/rubyspec/core/kernel/equal_spec.rb
opal-0.3.44 spec/rubyspec/core/kernel/equal_spec.rb
opal-0.3.43 spec/rubyspec/core/kernel/equal_spec.rb
opal-0.3.42 spec/core/kernel/equal_spec.rb
opal-0.3.41 spec/core/kernel/equal_spec.rb
opal-0.3.40 spec/core/kernel/equal_spec.rb
opal-0.3.39 spec/core/kernel/equal_spec.rb
opal-0.3.38 spec/core/kernel/equal_spec.rb
opal-0.3.37 spec/core/kernel/equal_spec.rb
opal-0.3.36 spec/core/kernel/equal_spec.rb
opal-0.3.35 spec/core/kernel/equal_spec.rb
opal-0.3.34 spec/core/kernel/equal_spec.rb
opal-0.3.33 spec/core/kernel/equal_spec.rb
opal-0.3.32 spec/core/kernel/equal_spec.rb
opal-0.3.31 spec/core/kernel/equal_spec.rb
opal-0.3.30 spec/core/kernel/equal_spec.rb