[macruby-changes] [2898] MacRuby/trunk/test_vm/exception.rb

source_changes at macosforge.org source_changes at macosforge.org
Sun Oct 25 15:52:52 PDT 2009


Revision: 2898
          http://trac.macosforge.org/projects/ruby/changeset/2898
Author:   vincent.isambart at 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
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091025/a404bc8d/attachment.html>


More information about the macruby-changes mailing list