Sha256: be0c5c9980b5ffd85390ed67785b12d53900d0a9c07d04416d41a4b080754183
Contents?: true
Size: 593 Bytes
Versions: 10
Compression:
Stored size: 593 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/hash/weave.rb # # Extracted Mon Sep 03 16:23:07 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/hash/weave.rb' require 'test/unit' class TestHashWeave < 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
10 entries across 10 versions & 1 rubygems