Sha256: 16fe7211508b9f129cd1c3e91bf3ecd9aa4dfa4ca6b05966310106a1d09a1c2c

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

covers 'facets/enumerable/one'

test_case Enumerable do

  method :one? do

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

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

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

    test do
      a = [true, 1]
      assert( ! a.one? )
    end

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

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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