From 4542f21a429f05b7c290896248fed9b714f9f9f8 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 24 Dec 2007 04:55:37 +0000 Subject: * proc.c (rb_proc_new), vm.c (invoke_block): removed u3.state magic. [ruby-core:14310] * test/ruby/test_symbol.rb (test_to_proc): a test from Frederick Cheung . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_symbol.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 2ccfe64c92..f53e615766 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -74,4 +74,8 @@ class TestSymbol < Test::Unit::TestCase assert_inspect_evaled(':$0') assert_inspect_evaled(':$1') end + + def test_to_proc + assert_equal %w(1 2 3), (1..3).map(&:to_s) + end end -- cgit v1.2.3