Sha256: 6fe4e18e9581dbc8f87d00d749a43bf0ca8b21c08d4d3d887ca47debed34a4ab

Contents?: true

Size: 655 Bytes

Versions: 9

Compression:

Stored size: 655 Bytes

Contents

  #  _____         _
  # |_   _|__  ___| |_
  #   | |/ _ \/ __| __|
  #   | |  __/\__ \ |
  #   |_|\___||___/\__|
  #
  # for lib/facets/curry.rb
  #
  # Extracted Mon Sep 03 16:23:07 -0700 2007
  # w/ Test Extraction Ratchet
  #

 require 'facets/curry.rb'



  require 'test/unit'

  class TestCurry < Test::Unit::TestCase

    def setup
      @p = Proc.new{ |a,b,c| a + b + c }
    end

    def test_first
      n = @p.curry(__,2,3)
      assert_equal( 6, n[1] )
    end

    def test_second
      n = @p.curry(1,__,3)
      assert_equal( 6, n[2] )
    end

    def test_third
      n = @p.curry(1,2,__)
      assert_equal( 6, n[3] )
    end

  end



Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
facets-2.0.0 test/unit/test_curry.rb
facets-2.0.1 test/unit/test_curry.rb
facets-2.0.2 test/unit/test_curry.rb
facets-2.0.3 test/unit/test_curry.rb
facets-2.0.4 test/unit/test_curry.rb
facets-2.0.5 test/unit/test_curry.rb
facets-2.1.0 test/unit/test_curry.rb
facets-2.1.1 test/unit/test_curry.rb
facets-2.1.2 test/unit/test_curry.rb