Sha256: 41e2096efb1859debfa2aa97c171e6544963354b6e891f4cb83363a03b023b67

Contents?: true

Size: 589 Bytes

Versions: 1

Compression:

Stored size: 589 Bytes

Contents

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

require 'nano/array/delete_values_at.rb'


  require 'test/unit'

  class TCArray < Test::Unit::TestCase

    def test_delete_values_at
      a = [1,2,3,4]
      assert_equal( [2,3], a.delete_values_at(1,2) )
      assert_equal( [1,4], a )
      a = [1,2,3,4]
      assert_equal( [1,2,3], a.delete_values_at(0..2) )
      assert_equal( [4], a )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

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