Sha256: 90e0a5ae7e210e8906a35bc2da3b1e09c6b6dabf251c4b050acda85899028e7b

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/array/pos.rb
#
# Extracted Tue Jun 20 15:12:26 EDT 2006
# Unit Tools Reap Test Extractor
#

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


  require 'test/unit'

  class TCArray < Test::Unit::TestCase

    def test_pos
      a = [1,2,3,4,5]
      assert_equal( 0, a.pos(1) )
      assert_equal( 4, a.pos(-1) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.2 test/lib/facets/core/array/test_pos.rb