Sha256: 4c2d74feebe1e244075efb417caaca401a3f50a8bf3c321c836a1b8dc7b7e1ea

Contents?: true

Size: 197 Bytes

Versions: 81

Compression:

Stored size: 197 Bytes

Contents

describe "Enumerable#each_slice" do
  it "breaks out with the proper value" do
    [1, 2, 3].each_slice(1) { break 42 }.should == 42
    [1, 2, 3].each_slice(2) { break 42 }.should == 42
  end
end

Version data entries

81 entries across 81 versions & 3 rubygems

Version Path
opal-1.4.0 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.4.0.alpha1 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.3.2 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.3.1 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.3.0 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.3.0.rc1 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.3.0.alpha1 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.2.0 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.2.0.beta1 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.1.1 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.1.1.rc1 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.1.0 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-1.1.0.rc1 spec/opal/core/enumerable/each_slice_break_spec.rb
opal-0.10.6 spec/opal/core/enumerable/each_slice_break.rb
opal-0.10.6.beta spec/opal/core/enumerable/each_slice_break.rb
opal-0.10.5 spec/opal/core/enumerable/each_slice_break.rb
opal-0.10.4 spec/opal/core/enumerable/each_slice_break.rb
opal-0.11.0.rc1 spec/opal/core/enumerable/each_slice_break.rb
opal-0.10.3 spec/opal/core/enumerable/each_slice_break.rb
opal-0.10.2 spec/opal/core/enumerable/each_slice_break.rb