Sha256: eb40c76e70d7fafab5625a4c337d37f7c9fa85b74b6092daa887ff3aa76cba56

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/kernel/val.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/kernel/val.rb'


  require 'test/unit'

  class TCKernel < Test::Unit::TestCase

    def test_val_1
      f = nil
      t = 1
      assert( ! f.val? )
      assert( t.val? )
    end

    def test_val_2
      f = []
      t = [1]
      assert( ! f.val? )
      assert( t.val? )
    end

    def test_val_3
      f = ''
      t = '1'
      assert( ! f.val? )
      assert( t.val? )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/core/kernel/test_val.rb