From e07663ec1fa3f03031fd6e074446857490767983 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 19 May 2008 16:47:42 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ bootstraptest/test_knownbug.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 53da484080..c8e150d9d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue May 20 01:43:44 2008 Koichi Sasada + + * 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 * parse.y (assignable_gen): when "self = 1" was evalueted, unnecessary diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index d5845d149e..9f1bbc8a4d 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -7,9 +7,9 @@ assert_equal 'ok', %q{ class C define_method(:foo) { if block_given? - :ok - else :ng + else + :ok end } end