Sha256: bfb0419edcc035d3c023a8e7415504f796b763fead768dc16fa69cde234e1b33
Contents?: true
Size: 498 Bytes
Versions: 3
Compression:
Stored size: 498 Bytes
Contents
# Test lib/more/ext/facets/proc/partial.rb require 'facets/proc/partial.rb' require 'test/unit' class TestProcPartial < Test::Unit::TestCase def test_first f = Proc.new{ |a,b,c| a + b + c } n = f.partial(__,2,3) assert_equal( 6, n[1] ) end def test_second f = Proc.new{ |a,b,c| a + b + c } n = f.partial(1,__,3) assert_equal( 6, n[2] ) end def test_third f = Proc.new{ |a,b,c| a + b + c } n = f.partial(1,2,__) assert_equal( 6, n[3] ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.0 | test/proc/test_partial.rb |
facets-2.4.1 | test/proc/test_partial.rb |
facets-2.4.2 | test/core/proc/test_partial.rb |