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

Language Ruby Lines 23
MD5 Hash cb998b567d131fec13691485bf61e4af Estimated Cost $329 (why?)
Repository https://bitbucket.org/mediashelf/fedora-migrator View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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
Back to Top