Sha256: 587c1a22093166bbc33c9129a841b98d352d5a7794490be2b9600d6f93c66d79

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/hash/swap.rb
#
# Extracted Mon Jun 05 08:14:29 EDT 2006
# Unit Tools Reap Test Extractor
#

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.4.0 test/lib/facets/core/hash/test_swap.rb