diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-06 00:27:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-06 00:27:35 +0000 |
commit | 95cf86dd269c1b468ab55007616ef2854a13cdad (patch) | |
tree | d18619c80cf21d56fb200f98c3bbfb64c20a3332 | |
parent | a5c6b705dbe19ac4123f7f5773c4a86cf74bec61 (diff) | |
download | ruby-95cf86dd269c1b468ab55007616ef2854a13cdad.tar.gz |
* bootstraptest/test_knownbug.rb: test for [ruby-talk:266422].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | bootstraptest/test_knownbug.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 458542f5ea..9883ceb25b 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -18,3 +18,12 @@ assert_match /unterminated string meets end of file/, %q{ assert_normal_exit %q{ "abcd\xf0".force_encoding("utf-8").reverse.inspect }, '[ruby-dev:32448]' + +assert_equal 'hi', %q{ + class C + define_method(:foo) { |arg, &block| + if block then block.call else arg end + } + end + C.new.foo("ng") {"ok"} +}, '[ruby-talk:266422]' |