Sha256: 32de7234f375ad7545b19c49e5fd84e1e4e929af1641ac12f6c30fa5b094b34e

Contents?: true

Size: 246 Bytes

Versions: 23

Compression:

Stored size: 246 Bytes

Contents

describe "Array#count" do
  it "returns the count of elements" do
    [1, :two, 'three'].count.should == 3
  end

  it "returns count of elements that equals given object" do
    [1, 'some text', 'other text', 2, 1].count(1).should == 2
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
opal-0.3.41 spec/core/array/count_spec.rb
opal-0.3.40 spec/core/array/count_spec.rb
opal-0.3.39 spec/core/array/count_spec.rb
opal-0.3.38 spec/core/array/count_spec.rb
opal-0.3.37 spec/core/array/count_spec.rb
opal-0.3.36 spec/core/array/count_spec.rb
opal-0.3.35 spec/core/array/count_spec.rb
opal-0.3.34 spec/core/array/count_spec.rb
opal-0.3.33 spec/core/array/count_spec.rb
opal-0.3.32 spec/core/array/count_spec.rb
opal-0.3.31 spec/core/array/count_spec.rb
opal-0.3.30 spec/core/array/count_spec.rb
opal-0.3.29 spec/core/array/count_spec.rb
opal-0.3.28 spec/core/array/count_spec.rb
opal-0.3.27 spec/core/array/count_spec.rb
opal-0.3.26 spec/core/array/count_spec.rb
opal-0.3.25 spec/core/array/count_spec.rb
opal-0.3.22 spec/core/array/count_spec.rb
opal-0.3.21 test/core/array/count_spec.rb
opal-0.3.20 test/core/array/count_spec.rb