summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-15 07:46:38 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-15 07:46:38 +0000
commit0eb19d3bd01bda7765c69395cb6ce34d1c8066c5 (patch)
tree7aa32eae09a7afcdf9e46c789375eddab79e7eb1 /test/ruby
parentc312b4671dea2a7ab7673a4ff65b907782c2b75a (diff)
downloadruby-0eb19d3bd01bda7765c69395cb6ce34d1c8066c5.tar.gz
ruby-0eb19d3bd01bda7765c69395cb6ce34d1c8066c5.tar.xz
ruby-0eb19d3bd01bda7765c69395cb6ce34d1c8066c5.zip
* test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_symbol.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index f53e61576..ac73dc913 100644
--- a/test/ruby/test_symbol.rb
+++ b/test/ruby/test_symbol.rb
@@ -77,5 +77,8 @@ class TestSymbol < Test::Unit::TestCase
def test_to_proc
assert_equal %w(1 2 3), (1..3).map(&:to_s)
+ 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]) }
end
end