PageRenderTime 223ms CodeModel.GetById 101ms app.highlight 4ms RepoModel.GetById 117ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/array/test_merge.rb

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 22 lines | 15 code | 6 blank | 1 comment | 0 complexity | cb998b567d131fec13691485bf61e4af MD5 | raw file
 1require 'facets/array/merge'
 2require 'test/unit'
 3
 4class TC_Array_Merge < Test::Unit::TestCase
 5
 6  # merge
 7
 8  def test_merge
 9    a = [1,2,3]
10    b = [3,4,5]
11    assert_equal( [1,2,3,4,5], a.merge(b) )
12  end
13
14  def test_merge!
15    a = [1,2,3]
16    b = [3,4,5]
17    a.merge!(b)
18    assert_equal( [1,2,3,4,5], a )
19  end
20
21end
22