Sha256: 363b53c327fb32e2ee94d5ffc2869cb5298e584b247abc83fdcdcdfa192d9733

Contents?: true

Size: 178 Bytes

Versions: 6

Compression:

Stored size: 178 Bytes

Contents

describe "Array#each" do
  it "yields each element to the block" do
    a = []
    x = [1, 2, 3]
    x.each { |item| a << item }.should == x
    a.should == [1, 2, 3]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-0.3.2 gems/core/spec/core/array/each_spec.rb
opal-0.3.1 gems/core/spec/core/array/each_spec.rb
opal-0.3.0 gems/core/spec/core/array/each_spec.rb
opal-0.2.2 opals/opal/opal/spec/core/array/each_spec.rb
opal-0.2.0 opals/opal/opal/spec/core/array/each_spec.rb
opal-0.1.0 opals/opal/spec/core/array/each_spec.rb