Sha256: 6701a094c5c78c8aa09e9c2d0944a321a8fe1ead88ad5075550304ac9ef2a46c
Contents?: true
Size: 275 Bytes
Versions: 9
Compression:
Stored size: 275 Bytes
Contents
require 'test/unit' require 'funkr/extensions/hash' class TestHash < Test::Unit::TestCase def test_map_v assert_equal( {a: 2, b: 3}, {a: 1, b: 2}.map_v{|v| v + 1} ) h = Hash.new(:patate) assert_equal( :patate, h.map_v{|x| x + 1}[:foo] ) end end
Version data entries
9 entries across 9 versions & 1 rubygems