Sha256: 071e68e200a99ace16f2c36818400382b44111b7c82310ad4e2be0f743ba29d1
Contents?: true
Size: 544 Bytes
Versions: 10
Compression:
Stored size: 544 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/hash/inverse.rb # # Extracted Mon Sep 03 16:23:07 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/hash/inverse.rb' require 'test/unit' class TestHashInverse < Test::Unit::TestCase def test_inverse 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
10 entries across 10 versions & 1 rubygems