Sha256: 80b935a17c976ddd6ca7819447677e195f208a99453f536f228d75f234b14ab1
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/enumerable/eachn.rb # # Extracted Wed Aug 23 18:22:52 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/enumerable/eachn.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_eachn x = [] [1,2,3,4].eachn{ |a,b| x << [a,b] } o = [[1,2],[3,4]] assert_equal( o, x ) x = [] [1,2,3,4,5].eachn{ |a,b,c| x << [a,b,c] } o = [[1,2,3],[4,5,nil]] assert_equal( o, x ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.30 | test/lib/facets/core/enumerable/test_eachn.rb |