Sha256: 619f7c57b6dfecf3a9965e08338df9e4a2c0f92c3da003b0af4b9f6b95734dd9
Contents?: true
Size: 321 Bytes
Versions: 4
Compression:
Stored size: 321 Bytes
Contents
covers 'facets/hash/update_keys' testcase Hash do unit :update_keys do h = { 'A' => 1, 'B' => 2 } h.update_keys{ |k| k.downcase } h.assert == {'a' => 1, 'b' => 2} end unit :update_keys do h = { :a => 1, :b => 2 } h.update_keys{ |k| "#{k}!" } h.assert == {'a!' => 1, 'b!' => 2} end end
Version data entries
4 entries across 4 versions & 1 rubygems