Sha256: de8b231aa4b6d1e8dc446da0545e470360829a6cf7df29842957cbf7628d16c4
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/hash/stringify_keys.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # require 'facets/core/hash/stringify_keys.rb' require 'test/unit' class TCHash < Test::Unit::TestCase def test_keys_to_s foo = { :a=>1, :b=>2 } assert_equal( { "a"=>1, "b"=>2 }, foo.stringify_keys ) assert_equal( { :a =>1, :b=>2 }, foo ) end def test_keys_to_s! foo = { :a=>1, :b=>2 } assert_equal( { "a"=>1, "b"=>2 }, foo.stringify_keys! ) assert_equal( { "a"=>1, "b"=>2 }, foo ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.8.49 | test/lib/facets/core/hash/test_stringify_keys.rb |