Sha256: a2eb98a5754d02512a31ed1cebd1eceb7539b3a6b1e3ae33c82d496ba9cbeb82
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/enumerable/each_unique_pair.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/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-0.9.0 | test/lib/nano/enumerable/test_each_unique_pair.rb |