mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
6bc6708b97
commit
fc6073bde4
1 changed files with 6 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue