Sha256: d060135750b996cbcc69c6eac86f7b23309ea754c6a4aa1b8130c7c836581d25

Contents?: true

Size: 418 Bytes

Versions: 4

Compression:

Stored size: 418 Bytes

Contents

covers 'facets/enumerable/every'

testcase Enumerable do

  unit :every do
    a = [1,2,3]
    (a.every + 3 ).assert == [4,5,6]
    (a.every - 1).assert == [0,1,2]
    (a.every.to_s).assert == ['1','2','3']
  end

  unit :every! do
    a = [1,2,3]
    a.every! + 3
    a.assert == [4,5,6]
  end

  unit :every => "on Enumerator" do
    e = [1,2,3].to_enum(:map)
    r = e.every + 3
    r.assert == [4,5,6]
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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