Sha256: 72cb6076d287aa69d1ccdde572dac8395bfcf16fa853b2e774a058e55e321b8e
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/enumerable/each_unique_pair.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/enumerable/each_unique_pair.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_each_unique_pair r = [] a = [1,2,3,4] a.each_unique_pair{ |a,b| r << [a,b] } assert_equal( [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]], r ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/core/test/lib/facet/enumerable/test_each_unique_pair.rb |