Sha256: bc9b8b5540b199876ddc9d225543c46b82d20c91a3d2dc7374be29ac7c39849d
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/enumerable/find_collisions.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/enumerable/find_collisions.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_find_collisions a = [1,2,2,3,3,3] assert_equal( [2,3], a.find_collisions ) a = [1,2,2,3,3,3] r = {false=>[1, 2, 2], true=>[3, 3, 3]} assert_equal( r, a.find_collisions { |x| x > 2 } ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | test/lib/nano/enumerable/test_find_collisions.rb |