Revision: 2898 http://trac.macosforge.org/projects/ruby/changeset/2898 Author: vincent.isambart@gmail.com Date: 2009-10-25 15:52:51 -0700 (Sun, 25 Oct 2009) Log Message: ----------- added a test case for bug #403 Modified Paths: -------------- MacRuby/trunk/test_vm/exception.rb Modified: MacRuby/trunk/test_vm/exception.rb =================================================================== --- MacRuby/trunk/test_vm/exception.rb 2009-10-25 04:23:32 UTC (rev 2897) +++ MacRuby/trunk/test_vm/exception.rb 2009-10-25 22:52:51 UTC (rev 2898) @@ -381,3 +381,19 @@ end $p.call } + +assert "b0\na1", %{ + def foo + 2.times do |i| + begin + raise StandardError if i == 0 + puts "a\#{i}" + return + rescue StandardError + puts "b\#{i}" + next + end + end + end + foo +}