Sha256: 354a94963fd389002749713d807eedbad915c2dd2be6a85f20ea9690ca46cf2f
Contents?: true
Size: 564 Bytes
Versions: 9
Compression:
Stored size: 564 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/mapsend.rb # # Extracted Mon Sep 03 16:23:08 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/mapsend.rb' require 'test/unit' class TestThreadedMapSend < Test::Unit::TestCase def test_map_send r = [1,2,3].map_send(:+, 1) assert_equal(r, [2,3,4]) end def test_map_send_with_block r = [1,2,3].map_send(:+,1){ |x| x + 1 } assert_equal(r, [3,4,5]) end end
Version data entries
9 entries across 9 versions & 1 rubygems