Sha256: 7e06a348c453c2ea2f1b92a3f5c905d1584fa22b419411070c0fbbab3b13e179

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

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

require 'nano/array/mid.rb'


  require 'test/unit'

  class TCArray < Test::Unit::TestCase

    def test_mid
      a = [1,2,3,4,5]
      b = [1,2,3,4,5,6]
      assert_equal( 3, a.mid )
      assert_equal( 4, b.mid )
      assert_equal( 4, a.mid(1) )
      assert_equal( 5, b.mid(1) )
      assert_equal( 6, b.mid(2) )
      assert_equal( 3, b.mid(-1) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 test/lib/nano/array/test_mid.rb