From bf52f99b6bc47beae34b5abe0276c5d20f282de2 Mon Sep 17 00:00:00 2001 From: kazu Date: Tue, 15 Apr 2008 07:46:38 +0000 Subject: [PATCH] * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/ruby/test_symbol.rb | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1bf01348be..01d4e072d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Apr 15 16:45:14 2008 Kazuhiro NISHIYAMA + + * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests. + Tue Apr 15 15:38:02 2008 Nobuyoshi Nakada * misc/ruby-mode.el (ruby-encoding-map): added shift-jis for older 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