1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bootstraptest/test_knownbug.rb: fix a test.

"block_given?" returns true if "yield" can be used.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2008-05-19 16:47:42 +00:00
parent 2d9135f7a8
commit e07663ec1f
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue May 20 01:43:44 2008 Koichi Sasada <ko1@atdot.net>
* 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@tsg.ne.jp>
* parse.y (assignable_gen): when "self = 1" was evalueted, unnecessary

View file

@ -7,9 +7,9 @@ assert_equal 'ok', %q{
class C
define_method(:foo) {
if block_given?
:ok
else
:ng
else
:ok
end
}
end