Sha256: 40cf8d011201d652e04eb5075f1c0e4ae4f53dc68c9757f3ddc8cdf2edfc4cd3
Contents?: true
Size: 406 Bytes
Versions: 4
Compression:
Stored size: 406 Bytes
Contents
covers 'facets/hash/deep_merge' testcase Hash do unit :deep_merge 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 unit :deep_merge! 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
Version data entries
4 entries across 4 versions & 1 rubygems