Sha256: 587055092ca04c9a7b20b6dc3a35a9cbe0d3df8f2b0081ee23c192ea65784ebf
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/hash/collate.rb # # Extracted Wed Aug 23 18:22:52 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/hash/collate.rb' require 'test/unit' class TCHash < Test::Unit::TestCase def test_collate a = { :a => 1, :b => 2, :c => 3 } e = { :a => 2, :b => 3, :c => 4 } assert_equal( e, a.collate{ |k,v| { k => v+1 } } ) end def test_collate! a = { :a => 1, :b => 2, :c => 3 } e = { :a => 2, :b => 3, :c => 4 } a.collate!{ |k,v| { k => v+1 } } assert_equal( e, a ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.30 | test/lib/facets/core/hash/test_collate.rb |