Sha256: 5114fb145fbc4a319ec5532804526a4887c7c90b058ceae4b00486c7b2da6329

Contents?: true

Size: 269 Bytes

Versions: 4

Compression:

Stored size: 269 Bytes

Contents

covers 'facets/hash/except'

testcase Hash do

  unit :except do
    h = {:a=>1, :b=>2, :c=>3}
    h.except(:a).assert == {:b=>2,:c=>3}
  end

  unit :except! do
    h = {:a=>1, :b=>2, :c=>3}
    h.except!(:a).assert == {:a=>1}
    h.assert == {:b=>2,:c=>3}
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/hash/test_expect.rb
facets-2.9.0 test/core/hash/test_expect.rb
facets-2.9.0.pre.2 test/core/hash/test_expect.rb
facets-2.9.0.pre.1 test/core/hash/test_expect.rb