Sha256: 976b1251d3e96849aa06d11d16f35b2f42f6f7852ee5541d64643fc822723acf
Contents?: true
Size: 359 Bytes
Versions: 23
Compression:
Stored size: 359 Bytes
Contents
describe "Array#+" do it "concatenates two arrays" do ([ 1, 2, 3 ] + [ 3, 4, 5 ] ).should == [1, 2, 3, 3, 4, 5] ([ 1, 2, 3 ] + []).should == [1, 2, 3] ([] + [ 1, 2, 3 ]).should == [1, 2, 3] ([] + []).should == [] end it "can concatenate an array with itself" do ary = [1, 2, 3] (ary + ary).should == [1, 2, 3, 1, 2, 3] end end
Version data entries
23 entries across 23 versions & 1 rubygems