Sha256: 6a6e270b01dcdcd813cbf7a2bc3303351b3031476c1e0a1d6559748cedfcc6b7
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/hash/inverse.rb # # Extracted Tue Jul 25 10:07:15 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.7.0 | test/lib/facets/core/hash/test_inverse.rb |