Sha256: cb0faa6ebbbef1b7cef499c6946d70e8997d762b68d76140930af864f011b93a

Contents?: true

Size: 372 Bytes

Versions: 16

Compression:

Stored size: 372 Bytes

Contents

require 'facets/kernel/val.rb'
require 'test/unit'

class TestKernelVal < 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

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/kernel/test_val.rb
facets-2.8.3 test/core/kernel/test_val.rb
facets-2.8.2 test/core/kernel/test_val.rb
facets-2.8.1 test/core/kernel/test_val.rb
facets-2.8.0 test/core/kernel/test_val.rb
facets-2.7.0 test/core/kernel/test_val.rb
facets-2.6.0 test/core/kernel/test_val.rb
facets-2.4.0 test/kernel/test_val.rb
facets-2.4.1 test/kernel/test_val.rb
facets-2.4.2 test/core/kernel/test_val.rb
facets-2.4.3 test/core/kernel/test_val.rb
facets-2.4.4 test/core/kernel/test_val.rb
facets-2.5.1 test/core/kernel/test_val.rb
facets-2.5.0 test/core/kernel/test_val.rb
facets-2.4.5 test/core/kernel/test_val.rb
facets-2.5.2 test/core/kernel/test_val.rb