Sha256: 62ed1b0ff09d434906e46d1f0fce5ee199b9fda9f66471763184f849950ca13b

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

covers 'facets/hash/delete_values'

testcase Hash do

  unit :delete_values do
    a = { :a => 1, :b => 2, :c => 3 }
    x = { :b => 2, :c => 3 }
    r = a.delete_values(1)
    #r.assert == x
    a.assert == x
  end

  unit :delete_values_at do
    a = { :a => 1, :b => 2, :c => 3 }
    x = { :b => 2, :c => 3 }
    r = a.delete_values_at(:a)
    r.assert == [1]
    a.assert == x
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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