ruby-changes:33167
From: usa <ko1@a...>
Date: Mon, 3 Mar 2014 00:18:41 +0900 (JST)
Subject: [ruby-changes:33167] usa:r45246 (trunk): * test/ruby/test_backtrace.rb: get rid of warnings. unused variable,
usa 2014-03-03 00:18:36 +0900 (Mon, 03 Mar 2014) New Revision: 45246 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45246 Log: * test/ruby/test_backtrace.rb: get rid of warnings. unused variable, shadowing. Modified files: trunk/ChangeLog trunk/test/ruby/test_backtrace.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 45245) +++ ChangeLog (revision 45246) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Mar 3 00:17:43 2014 NAKAMURA Usaku <usa@r...> + + * test/ruby/test_backtrace.rb: get rid of warnings. unused variable, + shadowing. + Sun Mar 2 11:15:10 2014 Nobuyoshi Nakada <nobu@r...> * lib/find.rb (Find#find): add "ignore_error" keyword argument Index: test/ruby/test_backtrace.rb =================================================================== --- test/ruby/test_backtrace.rb (revision 45245) +++ test/ruby/test_backtrace.rb (revision 45246) @@ -101,7 +101,7 @@ class TestBacktrace < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_backtrace.rb#L101 } end } - bt = Fiber.new{ + Fiber.new{ rec[max] }.resume end @@ -111,21 +111,21 @@ class TestBacktrace < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ruby/test_backtrace.rb#L111 rec = lambda{|n| if n < 0 (m*6).times{|lev| - (m*6).times{|n| + (m*6).times{|i| t = caller(0).size - r = caller(lev, n) + r = caller(lev, i) r = r.size if r.respond_to? :size - # STDERR.puts [t, lev, n, r].inspect - if n == 0 - assert_equal(0, r, [t, lev, n, r].inspect) + # STDERR.puts [t, lev, i, r].inspect + if i == 0 + assert_equal(0, r, [t, lev, i, r].inspect) elsif t < lev - assert_equal(nil, r, [t, lev, n, r].inspect) + assert_equal(nil, r, [t, lev, i, r].inspect) else - if t - lev > n - assert_equal(n, r, [t, lev, n, r].inspect) + if t - lev > i + assert_equal(i, r, [t, lev, i, r].inspect) else - assert_equal(t - lev, r, [t, lev, n, r].inspect) + assert_equal(t - lev, r, [t, lev, i, r].inspect) end end } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/