Sha256: 818622679c699941141fd21d93ead15998af77ad95837830bb4b078f40dbb9a3
Contents?: true
Size: 270 Bytes
Versions: 4
Compression:
Stored size: 270 Bytes
Contents
covers 'facets/hash/slice' testcase Hash do unit :slice do h = {:a=>1,:b=>2,:c=>3} h.slice(:a, :b).assert == {:b=>2, :a=>1} end unit :slice! do h = {:a=>1,:b=>2,:c=>3} h.slice!(:a, :b).assert == {:c=>3} h.assert == {:a=>1,:b=>2} end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
facets-2.9.1 | test/core/hash/test_slice.rb |
facets-2.9.0 | test/core/hash/test_slice.rb |
facets-2.9.0.pre.2 | test/core/hash/test_slice.rb |
facets-2.9.0.pre.1 | test/core/hash/test_slice.rb |