diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | test/ruby/test_symbol.rb | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Tue Apr 15 16:45:14 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com> + + * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests. + Tue Apr 15 15:38:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * 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 |