Sha256: b6b4b67cbc5092c764e8eb8d8176b193adea68ada241ef6a904c9e5046af404c

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facet/hash/swap.rb
#
# Extracted Wed Jan 25 11:25:39 EST 2006
# Unit Tools Reap Test Extractor
#

require 'facet/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.0.3 packages/core/test/lib/facet/hash/test_swap.rb