diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 04:55:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 04:55:37 +0000 |
commit | f19a99a46ed52acc5558e0ad71c519e5a514abce (patch) | |
tree | ca1a071dd63fe97f08e684bf624cb50d29b59127 /test | |
parent | b93fd91be3861ebe7c75d55c736bef78162acc16 (diff) | |
download | ruby-f19a99a46ed52acc5558e0ad71c519e5a514abce.tar.gz ruby-f19a99a46ed52acc5558e0ad71c519e5a514abce.tar.xz ruby-f19a99a46ed52acc5558e0ad71c519e5a514abce.zip |
* 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 <frederick.cheung AT gmail.com>.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_symbol.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 2ccfe64c9..f53e61576 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 |