Sha256: 8c706ae2368d468e85193b84a8f5788ed0deace73d36e741d8ec29894b41c2b5

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/enumerable/one.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/enumerable/one.rb'


  require 'test/unit'

  class TCEnumerable < Test::Unit::TestCase

    def test_one?
      a = [nil, true]
      assert( a.one? )
      a = [true, false]
      assert( a.one? )
      a = [true, true]
      assert( ! a.one? )
      a = [true, 1]
      assert( ! a.one? )
      a = [1, 1]
      assert( ! a.one? )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/enumerable/test_one.rb