[macruby-changes] [970] MacRuby/branches/experimental/test_roxor.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 17 17:14:36 PDT 2009


Revision: 970
          http://trac.macosforge.org/projects/ruby/changeset/970
Author:   eloy.de.enige at gmail.com
Date:     2009-03-17 17:14:36 -0700 (Tue, 17 Mar 2009)
Log Message:
-----------
Added another failing test for the retry keyword.

Modified Paths:
--------------
    MacRuby/branches/experimental/test_roxor.rb

Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb	2009-03-17 23:46:34 UTC (rev 969)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-18 00:14:36 UTC (rev 970)
@@ -759,6 +759,8 @@
   assert "42", "x = begin; nil; rescue; nil; ensure; 42; end; p x"
   assert "42", "x = begin; raise; nil; rescue; nil; ensure; 42; end; p x"
 
+  assert "42", "x = 40; begin; x += 1; raise; rescue; retry if x < 42; end; p x"
+
   assert ":ok", %q{
     begin
       raise
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090317/6b015167/attachment-0001.html>


More information about the macruby-changes mailing list