Sha256: 5fc985f67a758149883a222b552c33ff95fd3588b81303dabc0cbe3be2c9fd4f
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/enumerable/find_collisions.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/core/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-1.8.49 | test/lib/facets/core/enumerable/test_find_collisions.rb |