Sha256: 90f042256370e0ce26a69701242624897d321e1dd240d27c2bda8745c3e9c584
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/enumerable/commonality.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/core/enumerable/commonality.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_commonality a = [1,2,2,3,3,3] r = { 2 => [2,2], 3 => [3,3,3] } assert_equal( r, a.commonality ) a = [1,2,2,3,3,3] r = {false=>[1, 2, 2], true=>[3, 3, 3]} assert_equal( r, a.commonality { |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_commonality.rb |