Sha256: 4ceed3d673ed6348c527ec0e32f50d26b0d00b430267ad87f5138ef09dfc3017
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/enumerable/each_combination.rb # # Extracted Tue Jul 25 10:07:15 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/enumerable/each_combination.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_each_combination r = [] a = [1,2,3,4] a.each_combination(2){ |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.7.0 | test/lib/facets/core/enumerable/test_each_combination.rb |