Sha256: c4f4860b818df37691e9ac921c00a989504658e4f05c2a43eba4b47feca813fc

Contents?: true

Size: 277 Bytes

Versions: 4

Compression:

Stored size: 277 Bytes

Contents

covers 'facets/hash/weave'

testcase Hash do

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

end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/hash/test_weave.rb
facets-2.9.0 test/core/hash/test_weave.rb
facets-2.9.0.pre.2 test/core/hash/test_weave.rb
facets-2.9.0.pre.1 test/core/hash/test_weave.rb