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 | eb2d19174e0201b4446f6062dea892b0ba2b9b60 (patch) | |
| tree | d18619c80cf21d56fb200f98c3bbfb64c20a3332 | |
| parent | 933fd07e286242ef6a9d3b653cb26246d4886953 (diff) | |
| download | ruby-eb2d19174e0201b4446f6062dea892b0ba2b9b60.tar.gz ruby-eb2d19174e0201b4446f6062dea892b0ba2b9b60.tar.xz ruby-eb2d19174e0201b4446f6062dea892b0ba2b9b60.zip | |
* bootstraptest/test_knownbug.rb: test for [ruby-talk:266422].
git-svn-id: http://svn.ruby-lang.org/repos/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 458542f5e..9883ceb25 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]' |
