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