Sha256: 25fc69962dcc4595c563fdd6c341d1097642fad6c77c11ee9e11d8cb1bcc6dfc

Contents?: true

Size: 442 Bytes

Versions: 10

Compression:

Stored size: 442 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |
#   |_|\___||___/\__|
#
# for facets/array/merge.rb

require 'facets/array/merge.rb'

require 'test/unit'

class TestArray < Test::Unit::TestCase

  def test_merge
    a = [1,2,3]
    b = [3,4,5]
    assert_equal( [1,2,3,4,5], a.merge(b) )
  end

  def test_merge!
    a = [1,2,3]
    b = [3,4,5]
    a.merge!(b)
    assert_equal( [1,2,3,4,5], a )
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.1.1 test/unit/array/test_merge.rb
facets-2.1.0 test/unit/array/test_merge.rb
facets-2.1.2 test/unit/array/test_merge.rb
facets-2.0.3 test/unit/array/test_merge.rb
facets-2.0.4 test/unit/array/test_merge.rb
facets-2.0.5 test/unit/array/test_merge.rb
facets-2.3.0 test/core/array/test_merge.rb
facets-2.2.0 test/unit/array/test_merge.rb
facets-2.2.1 test/unit/array/test_merge.rb
facets-2.1.3 test/unit/array/test_merge.rb