Sha256: 106b78c512234857ef09266a985a9cab6f1311b518e5026c8c7d3a07a02f6c01

Contents?: true

Size: 678 Bytes

Versions: 1

Compression:

Stored size: 678 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/hash/keys_to_sym.rb
#
# Extracted Wed Jul 05 11:47:50 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


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.4.5 test/lib/facets/core/hash/test_keys_to_sym.rb