diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 16:47:42 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 16:47:42 +0000 |
| commit | 2fe6158b36d75bc92b14ab8a13f1c9ab0520b03e (patch) | |
| tree | de326eb337dbc0a080a995b033a4771f4a338ee6 /bootstraptest | |
| parent | e6b406b7aaa54e1f5db4a72063c829072d47385c (diff) | |
| download | ruby-2fe6158b36d75bc92b14ab8a13f1c9ab0520b03e.tar.gz ruby-2fe6158b36d75bc92b14ab8a13f1c9ab0520b03e.tar.xz ruby-2fe6158b36d75bc92b14ab8a13f1c9ab0520b03e.zip | |
* bootstraptest/test_knownbug.rb: fix a test.
"block_given?" returns true if "yield" can be used.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
| -rw-r--r-- | bootstraptest/test_knownbug.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index d5845d149..9f1bbc8a4 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 |
