Sha256: 230caaca2ea53d8e020b7fc67793b121f026fff25d9b8083ccfe41f0df34c88c

Contents?: true

Size: 319 Bytes

Versions: 16

Compression:

Stored size: 319 Bytes

Contents

require 'facets/array/merge'
require 'test/unit'

class TC_Array_Merge < Test::Unit::TestCase

  # merge

  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

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/array/test_merge.rb
facets-2.8.3 test/core/array/test_merge.rb
facets-2.8.2 test/core/array/test_merge.rb
facets-2.8.1 test/core/array/test_merge.rb
facets-2.8.0 test/core/array/test_merge.rb
facets-2.7.0 test/core/array/test_merge.rb
facets-2.6.0 test/core/array/test_merge.rb
facets-2.4.0 test/array/test_merge.rb
facets-2.4.1 test/array/test_merge.rb
facets-2.4.2 test/core/array/test_merge.rb
facets-2.4.3 test/core/array/test_merge.rb
facets-2.4.4 test/core/array/test_merge.rb
facets-2.5.1 test/core/array/test_merge.rb
facets-2.5.0 test/core/array/test_merge.rb
facets-2.4.5 test/core/array/test_merge.rb
facets-2.5.2 test/core/array/test_merge.rb