Sha256: 2159708f51fa07652a0b529e6ba38d0064a60ae30734cdbae479aad586f328cc

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/hash/update_each.rb
#
# Extracted Mon Mar 13 13:24:08 UTC 2006
# Unit Tools Reap Test Extractor
#

require 'facet/hash/update_each.rb'


  require 'test/unit'

  class TCHash < 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

2 entries across 2 versions & 1 rubygems

Version Path
facets-1.1.0 test/lib/facet/hash/test_update_each.rb
facets-1.2.0 test/lib/facet/hash/test_update_each.rb