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