# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/hash/keys_to_sym.rb # # Extracted Tue Jun 20 15:12:26 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/hash/keys_to_sym.rb' require 'test/unit' class TCHash < Test::Unit::TestCase def test_keys_to_sym foo = { 'a'=>1, 'b'=>2 } assert_equal( { :a=>1, :b=>2 }, foo.keys_to_sym ) assert_equal( { "a" =>1, "b"=>2 }, foo ) end def test_keys_to_sym! foo = { 'a'=>1, 'b'=>2 } assert_equal( { :a=>1, :b=>2 }, foo.keys_to_sym! ) assert_equal( { :a=>1, :b=>2 }, foo ) end end