Sha256: ff9e1bd5e93665cb3d7d8fb3a81d4840d0897c7e34a3ed9e0160853529df4b5e

Contents?: true

Size: 655 Bytes

Versions: 2

Compression:

Stored size: 655 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/hash/keys_to_s.rb
#
# Extracted Mon Mar 13 13:24:08 UTC 2006
# Unit Tools Reap Test Extractor
#

require 'facet/hash/keys_to_s.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.keys_to_s )
      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.keys_to_s!  )
      assert_equal( { "a"=>1, "b"=>2 }, foo )
    end

  end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-1.1.0 test/lib/facet/hash/test_keys_to_s.rb
facets-1.2.0 test/lib/facet/hash/test_keys_to_s.rb