ruby-changes:4992
From: ko1@a...
Date: Tue, 20 May 2008 01:48:10 +0900 (JST)
Subject: [ruby-changes:4992] ko1 - Ruby:r16485 (trunk): * bootstraptest/test_knownbug.rb: fix a test.
ko1 2008-05-20 01:47:42 +0900 (Tue, 20 May 2008)
New Revision: 16485
Modified files:
trunk/ChangeLog
trunk/bootstraptest/test_knownbug.rb
Log:
* bootstraptest/test_knownbug.rb: fix a test.
"block_given?" returns true if "yield" can be used.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16485&r2=16484&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=16485&r2=16484&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 16484)
+++ ChangeLog (revision 16485)
@@ -1,3 +1,8 @@
+Tue May 20 01:43:44 2008 Koichi Sasada <ko1@a...>
+
+ * bootstraptest/test_knownbug.rb: fix a test.
+ "block_given?" returns true if "yield" can be used.
+
Tue May 20 01:07:19 2008 Yusuke Endoh <mame@t...>
* parse.y (assignable_gen): when "self = 1" was evalueted, unnecessary
Index: bootstraptest/test_knownbug.rb
===================================================================
--- bootstraptest/test_knownbug.rb (revision 16484)
+++ bootstraptest/test_knownbug.rb (revision 16485)
@@ -7,9 +7,9 @@
class C
define_method(:foo) {
if block_given?
+ :ng
+ else
:ok
- else
- :ng
end
}
end
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/