Sha256: 1fce3f7ba2d8c2dd5d4eb2776f18e755bf6abcf885853fd4ff3c1ab2bfea7147

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/enumerable/ew.rb
#
# Extracted Fri Feb 16 00:18:24 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/enumerable/ew.rb'


  require 'test/unit'

  class TCEnumerable < Test::Unit::TestCase

    def test_ew
      a = [1,2,3]
      b = [4,5]
      assert_equal( [4,5,6], a.ew + 3 )
      assert_equal( [5,7], a.ew + b )
      assert_equal( [[5,7],[3,4,5]], a.ew.+(b,2) )
      assert_equal( [[5,7],[4,5,6]], a.ew.+(b,3) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/enumerable/test_ew.rb