Sha256: 4cc401bfb9d2f0ba9f381746d274d92ab1aff156720dcae924e26f0cc7396ccd
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/enumerable/one.rb # # Extracted Wed Aug 23 18:22:52 EDT 2006 # Unit Tools Reap Test Extractor # 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.7.30 | test/lib/facets/core/enumerable/test_one.rb |