Sha256: 9208732e19a3a0fe04e15d4368adc33eea014b471917d37bccbe23e55835beb1

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/nano/hash/weave.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'nano/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

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 test/lib/nano/hash/test_weave.rb