Sha256: 1761431012a24b85b077457d7b65d3141ce1837bae43b56ed2774697315be145
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/hash/graph.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/core/hash/graph.rb' require 'test/unit' class TCHash < Test::Unit::TestCase def test_graph h = {:a=>1,:b=>2,:c=>3} h.graph!{ |k,v| [v, v*v] } assert_equal( {1=>1, 2=>4, 3=>9}, h ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/core/hash/test_graph.rb |