summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-15 08:06:33 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-15 08:06:33 +0000
commitbb3f83697de448c0056ce9474d93b080520609db (patch)
tree8ec62cedfc6086b44f5df42a050e0cd914a91c66
parentea81398ba75a8190ca0583266904ac30b9ac77f0 (diff)
* test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--test/ruby/test_symbol.rb3
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e6cf42ec0..56013b7add 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Apr 15 17:06:12 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests.
+
Tue Apr 15 16:58:55 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk/menuspec.rb: option check will fail when
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb
index f53e615766..ac73dc9137 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