[前][次][番号順一覧][スレッド一覧]

ruby-changes:4657

From: ko1@a...
Date: Tue, 22 Apr 2008 22:04:23 +0900 (JST)
Subject: [ruby-changes:4657] kazu - Ruby:r16151 (trunk): add a test of Symbol#to_proc.

kazu	2008-04-22 22:04:10 +0900 (Tue, 22 Apr 2008)

  New Revision: 16151

  Modified files:
    trunk/test/ruby/test_symbol.rb

  Log:
    add a test of Symbol#to_proc.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_symbol.rb?r1=16151&r2=16150&diff_format=u

Index: test/ruby/test_symbol.rb
===================================================================
--- test/ruby/test_symbol.rb	(revision 16150)
+++ test/ruby/test_symbol.rb	(revision 16151)
@@ -80,5 +80,6 @@
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]