ruby-changes:26409
From: naruse <ko1@a...>
Date: Wed, 19 Dec 2012 15:31:10 +0900 (JST)
Subject: [ruby-changes:26409] naruse:r38460 (trunk): Use next in proc instead of break or return
naruse 2012-12-19 15:31:02 +0900 (Wed, 19 Dec 2012) New Revision: 38460 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38460 Log: Use next in proc instead of break or return Modified files: trunk/test/ruby/test_settracefunc.rb Index: test/ruby/test_settracefunc.rb =================================================================== --- test/ruby/test_settracefunc.rb (revision 38459) +++ test/ruby/test_settracefunc.rb (revision 38460) @@ -694,7 +694,7 @@ class TestSetTraceFunc < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L694 def test_tracepoint_return_value trace = TracePoint.new(:call, :return){|tp| - break if tp.path != __FILE__ + next if tp.path != __FILE__ case tp.event when :call assert_raise(RuntimeError) {tp.return_value} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/