Sha256: 9bcd7d48c5725f2d8fa5f16cbbd8365e6485ea2c37053dada629181a00de11fb

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/hash/alias.rb
#
# Extracted Mon Jul 03 00:56:56 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.4.4 test/lib/facets/core/hash/test_alias.rb