Sha256: dfd93212045e1d4ae46f78345f6f092016561d7035d39ca2aabc1a4de8f55693

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/hash/weave.rb
#
# Extracted Mon Mar 13 13:24:08 UTC 2006
# Unit Tools Reap Test Extractor
#

require 'facet/hash/weave.rb'


  require 'test/unit'

  class TCHash < Test::Unit::TestCase

    def test_weave
      b = { :a=>1, :b=>[1,2,3], :c=>{ :x=>'X' } }
      c = { :a=>2, :b=>[4,5,6], :c=>{ :x=>'A', :y => 'B' } }
      r = { :a=>2, :b=>[1,2,3,4,5,6], :c=>{ :x => 'A', :y => 'B' } }
      assert_equal( r, b.weave(c) )
    end

  end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-1.1.0 test/lib/facet/hash/test_weave.rb
facets-1.2.0 test/lib/facet/hash/test_weave.rb