Sha256: 3fb6705a6b08afcb4c5d3055c391dae27de0c7fcaf97a721446e16729e6dcde0

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/hash/swap.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

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


  require 'test/unit'

  class TCHash < Test::Unit::TestCase

    def test_swap!
      h = { :a=>1, :b=>2 }
      assert_equal( { :a=>2, :b=>1 }, h.swap!(:a, :b) )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/hash/test_swap.rb