Sha256: 4cc4e6fc6d69764ef783ba153a5e3a44e0d0fe3258b736333c73c0448dd441ee

Contents?: true

Size: 201 Bytes

Versions: 16

Compression:

Stored size: 201 Bytes

Contents

require 'facets/hash/swap.rb'
require 'test/unit'

class TestHashSwap < 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

16 entries across 16 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/hash/test_swap.rb
facets-2.8.3 test/core/hash/test_swap.rb
facets-2.8.2 test/core/hash/test_swap.rb
facets-2.8.1 test/core/hash/test_swap.rb
facets-2.8.0 test/core/hash/test_swap.rb
facets-2.7.0 test/core/hash/test_swap.rb
facets-2.6.0 test/core/hash/test_swap.rb
facets-2.4.0 test/hash/test_swap.rb
facets-2.4.1 test/hash/test_swap.rb
facets-2.4.2 test/core/hash/test_swap.rb
facets-2.4.3 test/core/hash/test_swap.rb
facets-2.4.4 test/core/hash/test_swap.rb
facets-2.5.0 test/core/hash/test_swap.rb
facets-2.4.5 test/core/hash/test_swap.rb
facets-2.5.1 test/core/hash/test_swap.rb
facets-2.5.2 test/core/hash/test_swap.rb