--- 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
+}