mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
96b9744b3d
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
25 lines
293 B
Ruby
25 lines
293 B
Ruby
assert_equal 'ok', %q{
|
|
1.times{
|
|
eval("break")
|
|
}
|
|
:ok
|
|
}, '[ruby-dev:32525]'
|
|
|
|
assert_equal "ok", %q{
|
|
module Foo
|
|
end
|
|
|
|
begin
|
|
def foo(&b)
|
|
Foo.module_eval &b
|
|
end
|
|
foo{
|
|
def bar
|
|
end
|
|
}
|
|
bar
|
|
rescue NoMethodError
|
|
:ok
|
|
end
|
|
}, '[ruby-core:14378]'
|
|
|