[macruby-changes] [2345] MacRuby/trunk/test_vm/exception.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 18 04:57:58 PDT 2009
Revision: 2345
http://trac.macosforge.org/projects/ruby/changeset/2345
Author: vincent.isambart at gmail.com
Date: 2009-08-18 04:57:58 -0700 (Tue, 18 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-17 20:11:06 UTC (rev 2344)
+++ MacRuby/trunk/test_vm/exception.rb 2009-08-18 11:57:58 UTC (rev 2345)
@@ -362,3 +362,21 @@
p :ok
end
}
+
+assert '42', %{
+ class A < Exception; end
+ class B < Exception; end
+
+ def foo
+ a = 42
+ $p = proc { p a }
+ raise A.new
+ rescue B
+ end
+
+ begin
+ foo
+ rescue A
+ end
+ $p.call
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090818/ddbb4819/attachment.html>
More information about the macruby-changes
mailing list