ruby-changes:41652
From: nobu <ko1@a...>
Date: Wed, 3 Feb 2016 16:37:24 +0900 (JST)
Subject: [ruby-changes:41652] nobu:r53726 (trunk): test_exception.rb: NameError at FCALL
nobu 2016-02-03 16:37:19 +0900 (Wed, 03 Feb 2016) New Revision: 53726 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53726 Log: test_exception.rb: NameError at FCALL * test/ruby/test_exception.rb (test_name_error_info): add assertions for FCALL. Modified files: trunk/test/ruby/test_exception.rb Index: test/ruby/test_exception.rb =================================================================== --- test/ruby/test_exception.rb (revision 53725) +++ test/ruby/test_exception.rb (revision 53726) @@ -689,6 +689,12 @@ end.join https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L689 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} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/