[macruby-changes] [3059] MacRuby/trunk/test_vm/catch.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 27 18:18:17 PST 2009
Revision: 3059
http://trac.macosforge.org/projects/ruby/changeset/3059
Author: vincent.isambart at gmail.com
Date: 2009-11-27 18:18:14 -0800 (Fri, 27 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-28 01:26:06 UTC (rev 3058)
+++ MacRuby/trunk/test_vm/catch.rb 2009-11-28 02:18:14 UTC (rev 3059)
@@ -36,3 +36,23 @@
end
end
}
+
+assert '', %{
+ def foo
+ begin
+ raise ''
+ rescue
+ raise
+ end
+ end
+
+ 4.times {|fn| foo rescue nil }
+
+ catch(:enddoc) do
+ begin
+ throw :enddoc
+ rescue Exception => e
+ p :ko
+ end
+ end
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091127/b3e8ab70/attachment.html>
More information about the macruby-changes
mailing list