1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
nobu 2007-12-06 00:27:35 +00:00
parent a5c6b705db
commit 95cf86dd26

View file

@ -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]'