Sha256: 67b41c96d3ce98e9bba976d90651621b6a59ed1b0735bf764196b907a7b84970
Contents?: true
Size: 471 Bytes
Versions: 5
Compression:
Stored size: 471 Bytes
Contents
covers 'facets/hash/deep_merge' test_case Hash do method :deep_merge do test do h1 = { :a=>1, :c=>{:x=>10} } h2 = { :b=>2, :c=>{:y=>11} } h = h1.deep_merge(h2) h.assert == {:a=>1, :b=>2, :c=>{:x=>10, :y=>11}} end end method :deep_merge! do test do h1 = { :a=>1, :c=>{:x=>10} } h2 = { :b=>2, :c=>{:y=>11} } h1.deep_merge!(h2) h1.assert == {:a=>1, :b=>2, :c=>{:x=>10, :y=>11}} end end end
Version data entries
5 entries across 5 versions & 2 rubygems