Sha256: 1ac7d8eb8310350b31b82fafdbd803e044b246715b929d8d3d1f0ee599bc9c97
Contents?: true
Size: 361 Bytes
Versions: 4
Compression:
Stored size: 361 Bytes
Contents
covers 'facets/hash/op_sub' testcase Hash do unit :- => "hash minus array" do a = { :a => 1, :b => 2, :c => 3 } b = [ :a ] x = { :b => 2, :c => 3 } (a - b).assert == x end unit :- => "hash minus hash" do a = { :a => 1, :b => 2, :c => 3 } b = { :a => 1, :d => 4 } x = { :b => 2, :c => 3 } (a - b).assert == x end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
facets-2.9.1 | test/core/hash/test_op_sub.rb |
facets-2.9.0 | test/core/hash/test_op_sub.rb |
facets-2.9.0.pre.2 | test/core/hash/test_op_sub.rb |
facets-2.9.0.pre.1 | test/core/hash/test_op_sub.rb |