Sha256: 5bd22892e5479f8eb6d5764020344548487b08965bbb54a9a5ec9e19426dce80
Contents?: true
Size: 461 Bytes
Versions: 4
Compression:
Stored size: 461 Bytes
Contents
covers 'facets/hash/op_and' testcase Hash do unit :& => "hash and hash" do a = { :a => 1, :b => 2 } b = { :a => 1 } x = { :a => 1 } (a & b).assert == x end unit :& => "hashes with sub-array" do a = { :a => [1], :b => [2] } b = { :a => [1] } x = { :a => [1] } (a & b).assert == x end unit :& => "hash and array" do a = { :a => 1, :b => 2 } b = [ :a ] x = { :a => 1 } (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_and.rb |
facets-2.9.0 | test/core/hash/test_op_and.rb |
facets-2.9.0.pre.2 | test/core/hash/test_op_and.rb |
facets-2.9.0.pre.1 | test/core/hash/test_op_and.rb |