зеркало из https://github.com/github/ruby.git
test_exception.rb: NameError at FCALL
* test/ruby/test_exception.rb (test_name_error_info): add assertions for FCALL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6bc6708b97
Коммит
fc6073bde4
|
@ -689,6 +689,12 @@ end.join
|
|||
assert_equal(:foo, e.name)
|
||||
assert_equal([1, 2], e.args)
|
||||
assert_same(obj, e.receiver)
|
||||
e = assert_raise(NoMethodError) {
|
||||
obj.instance_eval {foo(1, 2)}
|
||||
}
|
||||
assert_equal(:foo, e.name)
|
||||
assert_equal([1, 2], e.args)
|
||||
assert_same(obj, e.receiver)
|
||||
def obj.test(a, b=nil, *c, &d)
|
||||
e = a
|
||||
1.times {|f| g = foo}
|
||||
|
|
Загрузка…
Ссылка в новой задаче