Sha256: a9d2a0600b602cf54e0eab1338f4ccc53916cad5b1298a8f57c8b9b67c6ffe8a
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/hash/each_with_index.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/core/hash/each_with_index.rb' require 'test/unit' class TCHash < Test::Unit::TestCase def test_each_with_key h1 = { :a=>1, :b=>2 } h2 = {} h1.each_with_index { |v,k| h2[v] = k } assert_equal( {1=>:a, 2=>:b}, h2 ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/core/hash/test_each_with_index.rb |