Sha256: 8e77405277e252c2c0fcc0765b570966acdb2e07e91e4779405ca334f5415b30

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

covers 'facets/enumerable/none'

test_case Enumerable do

  method :none? do

    test do
      a = [nil, nil]
      assert( a.none? )
    end

    test do
      a = [false, false]
      assert( a.none? )
    end

    test do
      a = [true, false]
      assert( ! a.none? )
    end

    test do
      a = [nil, 1]
      assert( ! a.none? )
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-3.0.0 test/core/enumerable/test_none.rb
facets-2.9.3 test/core/enumerable/test_none.rb
facets-2.9.2 test/core/enumerable/test_none.rb