Sha256: ffc6a39fee21e5370b1af397718205f6ec241c37833a225a65ccce169e367ff9
Contents?: true
Size: 491 Bytes
Versions: 31
Compression:
Stored size: 491 Bytes
Contents
describe "Array#==" do it "returns true if other is the same array" do a = [1] (a == a).should be_true end it "returns true if corresponding elements are #eql?" do ([] == []).should be_true ([1, 2, 3, 4] == [1, 2, 3, 4]).should be_true end it "returns false if other is shorter than self" do ([1, 2, 3, 4] == [1, 2, 3]).should be_false end it "returns false if other is longer than self" do ([1, 2, 3, 4] == [1, 2, 3, 4, 5]).should be_false end end
Version data entries
31 entries across 31 versions & 1 rubygems