Sha256: 816f763e66b72109394f1f997cd703d5ae3a93bdee5d141b2bf8657d0ae66e37

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/nano/hash/update_each.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'nano/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

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 test/lib/nano/hash/test_update_each.rb