[macruby-changes] [3052] MacRuby/trunk/test_vm/catch.rb

source_changes at macosforge.org source_changes at macosforge.org
Wed Nov 25 03:46:32 PST 2009


Revision: 3052
          http://trac.macosforge.org/projects/ruby/changeset/3052
Author:   vincent.isambart at gmail.com
Date:     2009-11-25 03:46:28 -0800 (Wed, 25 Nov 2009)
Log Message:
-----------
added a failing test

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

Modified: MacRuby/trunk/test_vm/catch.rb
===================================================================
--- MacRuby/trunk/test_vm/catch.rb	2009-11-25 09:10:32 UTC (rev 3051)
+++ MacRuby/trunk/test_vm/catch.rb	2009-11-25 11:46:28 UTC (rev 3052)
@@ -22,3 +22,17 @@
   catch(:x) do foo(); throw :x; end
   p :ok
 }
+
+assert '', %{
+  catch(:x) do
+    begin
+      begin
+        raise ''
+      rescue Exception => e
+        throw :x
+      end
+    rescue Exception => e
+      p :ko
+    end
+  end
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091125/cc63268b/attachment.html>


More information about the macruby-changes mailing list