Sha256: 43cfd3940c43b588b96d149552b8c223ac6c33b4a217fb9b0d8a438e0d7c4a78

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/hash/alias.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/hash/alias.rb'


  require 'test/unit'

  class TCHash < Test::Unit::TestCase

    def test_alias!
      foo = { 'a'=>1, 'b'=>2 }
      assert_equal( { 'a'=>1, 'b'=>2, 'c'=>2 }, foo.alias!('c','b') )
      foo = { 'a'=>1, 'b'=>2 }
      assert_equal( { :a=>1, 'a'=>1, 'b'=>2 }, foo.alias!(:a,'a') )
      foo = { :a=>1, :b=>2 }
      assert_equal( { :a=>1, :b=>2 }, foo.alias!('bar','foo') )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/core/hash/test_alias.rb