add test_knowbug [ruby-core:14813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9ad5f854e7
commit
48db39e355
@ -41,3 +41,28 @@ assert_equal 'ok', %q{
|
|||||||
}, '[ruby-dev:32882]'
|
}, '[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]'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user