Sha256: 8b2ef2fa067d5d801c4a83dacacd2314a9c843ca42a832c8f60c350fc24cb1d8

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/array/middle.rb
#
# Extracted Fri Feb 16 02:00:37 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/array/middle.rb'


  require 'test/unit'

  class TCArray < Test::Unit::TestCase

    def test_middle
      a = [1,2,3,4,5]
      b = [1,2,3,4,5,6]
      assert_equal( 3, a.middle )
      assert_equal( [3,4], b.middle )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/array/test_middle.rb