Sha256: 85ce34a40600d5401448ced62a1bd99c2dbdb2053ecd205ca69cc025f25e3f5c
Contents?: true
Size: 280 Bytes
Versions: 10
Compression:
Stored size: 280 Bytes
Contents
require 'facets/hash/update_each' require 'test/unit' class TC_Hash_Update_Each < Test::Unit::TestCase def test_update_each a = { :a => 1, :b => 2, :c => 3 } e = { :a => 2, :b => 3, :c => 4 } a.update_each{ |k,v| { k => v+1 } } assert_equal( e, a ) end end
Version data entries
10 entries across 10 versions & 1 rubygems