Sha256: 0409dd1f8d1f4d49ac99b53d73678a431a8fb979328d0339edb4059e28d806a1
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/enumerable/occur.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/enumerable/occur.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_occur arr = [:a,:b,:a] assert_equal( [:b], arr.occur(1) ) assert_equal( [:a], arr.occur(2) ) assert_equal( [:b], arr.occur(1..1) ) assert_equal( [:a], arr.occur{ |n| n % 2 == 0 } ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | test/lib/nano/enumerable/test_occur.rb |