Sha256: 39bd1f83c164b9ff54870a189804bb2cf9223eefaf8b5642f867d6370b0e2de2
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/hash/swapkey.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/hash/swapkey.rb' require 'test/unit' class TCHash < Test::Unit::TestCase def test_swapkeys! foo = { :a=>1, :b=>2 } assert_equal( { 'a'=>1, :b=>2 }, foo.swapkey!('a', :a) ) assert_equal( { 'a'=>1, 'b'=>2 }, foo.swapkey!('b', :b) ) assert_equal( { 'a'=>1, 'b'=>2 }, foo.swapkey!('foo','bar') ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/core/test/lib/facet/hash/test_swapkey.rb |