Sha256: c2e3776b05cd8127138dee80f55a585a0fbf7443f5fd4f9198aef12a344c4220

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/hash/inverse.rb
#
# Extracted Tue Jun 20 15:12:26 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/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( :a, h2[1] )
      assert( h2[2].include?(:b) )
      assert( h2[2].include?(:c) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.2 test/lib/facets/core/hash/test_inverse.rb