Sha256: 1504b1111eb4bf52e2583b718c65930468d25f6dd1b11699df9720c4bdf46945
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/enumerable/collect_with_index.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/enumerable/collect_with_index.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_collect_with_index a = [1,2,3].collect_with_index{ |e,i| e*i } assert_equal( [0,2,6], a ) 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_collect_with_index.rb |