# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/symbol/to_proc.rb # # Extracted Tue Jun 20 15:12:27 EDT 2006 # Unit Tools Reap Test Extractor # 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