зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
a5c6b705db
Коммит
95cf86dd26
|
@ -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]'
|
||||
|
|
Загрузка…
Ссылка в новой задаче