Sha256: e923a7836368e9c0fc23857e37d8a1501b0a0d6e2447d16c5d4a672fa8b60cf3
Contents?: true
Size: 307 Bytes
Versions: 61
Compression:
Stored size: 307 Bytes
Contents
require File.dirname(__FILE__) + '/../abstract_unit' class BlankTest < Test::Unit::TestCase BLANK = [nil, false, '', ' ', " \n\t \r ", [], {}] NOT = [true, 0, 1, 'a', [nil], { nil => 0 }] def test_blank BLANK.each { |v| assert v.blank? } NOT.each { |v| assert !v.blank? } end end
Version data entries
61 entries across 61 versions & 2 rubygems