Sha256: f6168bd12daa3ac9d3cc67e78362613df728c90c2ec7f8359c08f576ecf6d6ed
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/hash/keys_to_sym.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.0.3 | packages/core/test/lib/facet/hash/test_keys_to_sym.rb |