Sha256: c535ec562f66cff8b438bad1b14a8d87f8aa2538e9cfeb1753d7b54fb0ef9127

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/nano/enumerable/collect_with_index.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'nano/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-0.9.0 test/lib/nano/enumerable/test_collect_with_index.rb