Sha256: dcb68d84b4663c025aa5f793726c2ee8ceb87247fc6e2709381f91ee2f173ecd
Contents?: true
Size: 331 Bytes
Versions: 14
Compression:
Stored size: 331 Bytes
Contents
require 'facets/enumerable/one' require 'test/unit' class TC_Enumerable < 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
14 entries across 14 versions & 1 rubygems