Sha256: 43418aad21d1392b5729fe6fa777512f70aa19546d6a6670b8f97d063ae79075

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/symbol/to_proc.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

require 'facets/core/symbol/to_proc.rb'


  require 'test/unit'

  class TCSymbol < Test::Unit::TestCase

    def test_001
      assert_instance_of(Proc, up = :upcase.to_proc )
      assert_equal( "HELLO", up.call("hello") )
    end

    def test_002
      q = [[1,2,3], [4,5,6], [7,8,9]].map(&:reverse)
      a = [[3, 2, 1], [6, 5, 4], [9, 8, 7]]
      assert_equal( a, q )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/symbol/test_to_proc.rb