Sha256: 652f17f88eaf5d896ea0c0800f00d530016bcd44739a73bb7d3d7325cde6c7c6
Contents?: true
Size: 448 Bytes
Versions: 23
Compression:
Stored size: 448 Bytes
Contents
describe "Array#<=>" do it "returns 0 if the arrays are equal" do ([] <=> []).should == 0 ([1, 2, 3, 4, 5, 6] <=> [1, 2, 3, 4, 5, 6]).should == 0 end it "returns -1 if the array is shorter than the other array" do ([] <=> [1]).should == -1 ([1, 1] <=> [1, 1, 1]).should == -1 end it "returns +1 if the array is longer than the other array" do ([1] <=> []).should == 1 ([1, 1, 1] <=> [1, 1]).should == 1 end end
Version data entries
23 entries across 23 versions & 1 rubygems