Sha256: 7bc22a6de0fc2651d1247923e87b5fc7b4329c3f412c74b1106e1155de5dbf0b

Contents?: true

Size: 254 Bytes

Versions: 4

Compression:

Stored size: 254 Bytes

Contents

covers 'facets/enumerable/occur'

testcase Enumerable do

  unit :occur do
    arr = [:a,:b,:a]
    arr.occur(1).assert == [:b]
    arr.occur(2).assert == [:a]
    arr.occur(1..1).assert == [:b]
    arr.occur{ |n| n % 2 == 0 }.assert == [:a]
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/enumerable/test_occur.rb
facets-2.9.0 test/core/enumerable/test_occur.rb
facets-2.9.0.pre.2 test/core/enumerable/test_occur.rb
facets-2.9.0.pre.1 test/core/enumerable/test_occur.rb