diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-07 07:07:44 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-07 07:07:44 +0000 |
commit | 48db39e35586b9339995978ccb3eef6d3cb7c703 (patch) | |
tree | 5c6a307141bb5c881861e428b35ced44dbec5c16 | |
parent | 9ad5f854e745043e144408b6408f38dff7bcf880 (diff) | |
download | ruby-48db39e35586b9339995978ccb3eef6d3cb7c703.tar.gz |
add test_knowbug [ruby-core:14813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | bootstraptest/test_knownbug.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index b62d5be6b6..d47449fbe6 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -41,3 +41,28 @@ assert_equal 'ok', %q{ }, '[ruby-dev:32882]' +assert_equal 'ok', %q{ + class C + define_method(:foo) { + if block_given? + :ng + else + :ok + end + } + end + C.new.foo +}, '[ruby-core:14813]' + +assert_equal 'ok', %q{ + class C + define_method(:foo) { + if block_given? + :ok + else + :ng + end + } + end + C.new.foo {} +}, '[ruby-core:14813]' |