# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/hash/swap.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/hash/swap.rb' require 'test/unit' class TCHash < Test::Unit::TestCase def test_swap! h = { :a=>1, :b=>2 } assert_equal( { :a=>2, :b=>1 }, h.swap!(:a, :b) ) end end