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

source_changes at macosforge.org source_changes at macosforge.org
Sun Aug 16 22:25:57 PDT 2009


Revision: 2342
          http://trac.macosforge.org/projects/ruby/changeset/2342
Author:   mattaimonetti at gmail.com
Date:     2009-08-16 22:25:57 -0700 (Sun, 16 Aug 2009)
Log Message:
-----------
added a test_vm assertion for begin/raise/else

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

Modified: MacRuby/trunk/test_vm/exception.rb
===================================================================
--- MacRuby/trunk/test_vm/exception.rb	2009-08-17 05:01:19 UTC (rev 2341)
+++ MacRuby/trunk/test_vm/exception.rb	2009-08-17 05:25:57 UTC (rev 2342)
@@ -8,6 +8,8 @@
 assert "42", "x = 40; begin; x += 1; rescue; ensure; x += 1; end; p x"
 assert "42", "x = 40; begin; raise; x = nil; rescue; x += 1; ensure; x += 1; end; p x"
 
+assert "42", "x = 40; begin; x; rescue => e; else; x = 42 ; end; p x"
+
 assert "42", "x = begin; 42; rescue; nil; end; p x"
 assert "42", "x = begin; raise; nil; rescue; 42; end; p x"
 assert "42", "x = begin; 42; rescue; nil; ensure; nil; end; p x"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090816/fa24f9f7/attachment.html>


More information about the macruby-changes mailing list