Sha256: 3acc0e57454fad2508b80b7916515698dc6f7aa4c7806dbce36a98a688a123a9

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/hash/inverse.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/hash/inverse.rb'


  require 'test/unit'

  class TCHash < Test::Unit::TestCase

    def test_each_with_key
      h1 = { :a=>1, :b=>2, :c=>2 }
      h2 = h1.inverse
      assert_equal( {1=>:a, 2=>[:b,:c]}, h2 )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.0.3 packages/core/test/lib/facet/hash/test_inverse.rb