mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test for [ruby-dev:34579].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
21140756e1
commit
e17c10a391
1 changed files with 10 additions and 0 deletions
|
@ -232,3 +232,13 @@ assert_equal 'ok', %q{
|
||||||
:ng
|
:ng
|
||||||
}.call
|
}.call
|
||||||
}, '[ruby-dev:34646]'
|
}, '[ruby-dev:34646]'
|
||||||
|
|
||||||
|
assert_equal 'ok', %q{
|
||||||
|
begin
|
||||||
|
0.instance_eval { def m() :m end }
|
||||||
|
1.m
|
||||||
|
:ng
|
||||||
|
rescue Exception
|
||||||
|
:ok
|
||||||
|
end
|
||||||
|
}, '[ruby-dev:34579]'
|
||||||
|
|
Loading…
Reference in a new issue