Sha256: 49f7d3e8fd738079276ffac7c2319d74e990f9d9efdcb190f255e6c210eea5ce

Contents?: true

Size: 257 Bytes

Versions: 5

Compression:

Stored size: 257 Bytes

Contents

covers 'facets/hash/replace_each'

test_case Hash do

  method :replace_each do

    test do
      a = { :a => 1, :b => 2, :c => 3 }
      x = { :a => 2, :b => 3, :c => 4 }
      a.replace_each{ |k,v| { k => v+1 } }
      a.assert == x
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/hash/test_replace_each.rb
facets-3.1.0 test/core/hash/test_replace_each.rb
facets-3.0.0 test/core/hash/test_replace_each.rb
facets-2.9.3 test/core/hash/test_replace_each.rb
facets-2.9.2 test/core/hash/test_replace_each.rb