Sha256: 43317a68bf50b1818d154212ab7f07b6fe767e2c7bc54d142b9f8ffc746a04f3

Contents?: true

Size: 287 Bytes

Versions: 10

Compression:

Stored size: 287 Bytes

Contents

require 'facets/hash/replace_each'
require 'test/unit'

class Test_Hash_Replace_Each < Test::Unit::TestCase

  def test_replace_each
    a = { :a => 1, :b => 2, :c => 3 }
    e = { :a => 2, :b => 3, :c => 4 }
    a.replace_each{ |k,v| { k => v+1 } }
    assert_equal( e, a )
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/hash/test_replace_each.rb
facets-2.8.3 test/core/hash/test_replace_each.rb
facets-2.8.2 test/core/hash/test_replace_each.rb
facets-2.8.1 test/core/hash/test_replace_each.rb
facets-2.8.0 test/core/hash/test_replace_each.rb
facets-2.7.0 test/core/hash/test_replace_each.rb
facets-2.6.0 test/core/hash/test_replace_each.rb
facets-2.5.0 test/core/hash/test_replace_each.rb
facets-2.5.1 test/core/hash/test_replace_each.rb
facets-2.5.2 test/core/hash/test_replace_each.rb