# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/hash/inverse.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/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