Sha256: 79105d9088adfea55423fc0d61ef0fad2f4488f46d6b62ce4f518c37358e3b26
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/enumerable/self/cross.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/enumerable/self/cross.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_cross i = [[1,2], [3,4]] o = [[1, 3], [1, 4], [2, 3], [2, 4]] assert_equal( o, Enumerable.cross(*i) ) i = [[1,2], [4], ["apple", "banana"]] o = [[1, 4, "apple"], [1, 4, "banana"], [2, 4, "apple"], [2, 4, "banana"]] assert_equal( o, Enumerable.cross(*i) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | test/lib/nano/enumerable/self/test_cross.rb |