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

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 15 18:37:04 PDT 2009


Revision: 2328
          http://trac.macosforge.org/projects/ruby/changeset/2328
Author:   vincent.isambart at gmail.com
Date:     2009-08-15 18:37:04 -0700 (Sat, 15 Aug 2009)
Log Message:
-----------
added a failing test

Modified Paths:
--------------
    MacRuby/trunk/test_vm/exception.rb

Modified: MacRuby/trunk/test_vm/exception.rb
===================================================================
--- MacRuby/trunk/test_vm/exception.rb	2009-08-16 01:36:56 UTC (rev 2327)
+++ MacRuby/trunk/test_vm/exception.rb	2009-08-16 01:37:04 UTC (rev 2328)
@@ -269,3 +269,17 @@
   end
   p foo
 }
+
+assert "1\n2\n42", %{
+  def foo
+    begin
+      return 42
+    ensure
+      p 1
+    end
+    p 3
+  ensure
+    p 2
+  end
+  p foo
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090815/1cc430e7/attachment.html>


More information about the macruby-changes mailing list