ruby-changes:33955
From: nobu <ko1@a...>
Date: Wed, 21 May 2014 15:11:27 +0900 (JST)
Subject: [ruby-changes:33955] nobu:r46036 (trunk): test_backtrace.rb: r18554 tests
nobu 2014-05-21 15:11:22 +0900 (Wed, 21 May 2014) New Revision: 46036 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46036 Log: test_backtrace.rb: r18554 tests * test/ruby/test_backtrace.rb (test_core_backtrace_{alias,undef}): add tests for r18554. [ruby-dev:35820] [Bug #416] Modified files: trunk/test/ruby/test_backtrace.rb Index: test/ruby/test_backtrace.rb =================================================================== --- test/ruby/test_backtrace.rb (revision 46035) +++ test/ruby/test_backtrace.rb (revision 46036) @@ -214,4 +214,24 @@ class TestBacktrace < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_backtrace.rb#L214 q << true end end + + def test_core_backtrace_alias + obj = BasicObject.new + e = assert_raise(NameError) do + class << obj + alias foo bar + end + end + assert_not_match(/\Acore#/, e.backtrace_locations[0].base_label) + end + + def test_core_backtrace_undef + obj = BasicObject.new + e = assert_raise(NameError) do + class << obj + undef foo + end + end + assert_not_match(/\Acore#/, e.backtrace_locations[0].base_label) + end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/