summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 13:04:10 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-22 13:04:10 +0000
commitb8ea267a624086a97e5c33afc95320cce2956fb3 (patch)
tree20d00d74140077f971e7353f5961d56f5b9e56b7 /test/ruby
parent702c3b25205b3ee71c4ccdfdfc982de44885293b (diff)
downloadruby-b8ea267a624086a97e5c33afc95320cce2956fb3.tar.gz
ruby-b8ea267a624086a97e5c33afc95320cce2956fb3.tar.xz
ruby-b8ea267a624086a97e5c33afc95320cce2956fb3.zip
add a test of Symbol#to_proc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_symbol.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index ac73dc913..4d29d96f5 100644
--- a/test/ruby/test_symbol.rb
+++ b/test/ruby/test_symbol.rb
@@ -80,5 +80,6 @@ class TestSymbol < Test::Unit::TestCase
assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([]) }
assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([1]) }
assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([1,2]) }
+ assert_nothing_raised(ArgumentError) { :object_id.to_proc.call([1,[2,3]]) }
end
end