Sha256: 3a457fbb0cf74cdb59b29196d9abd776f5cd783bab12fbe951bc6037fa1afbbe
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/hash/swap.rb # # Extracted Mon Mar 13 13:24:08 UTC 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-1.1.0 | test/lib/facet/hash/test_swap.rb |
facets-1.2.0 | test/lib/facet/hash/test_swap.rb |