Sha256: ca85f6535a75469232d58cad0da045f1b96160cbba721666afa269c080dc5951

Contents?: true

Size: 633 Bytes

Versions: 1

Compression:

Stored size: 633 Bytes

Contents

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

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


  require 'test/unit'

  class TCArray < Test::Unit::TestCase

    def test_op_fetch
      a = ['a','b','c','d','e','f']
      assert_equal( ['b','f'], a[[1,-1]] )
    end

    def test_op_store
      a = ['a','o','z']
      a[[0,2]] = ['A','Z']
      assert_equal( ['A','o','Z'], a )
      a[[0,-1]] = ['W','Y']
      assert_equal( ['W','o','Y'], a )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

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