[macruby-changes] [1264] MacRuby/branches/experimental/spec/frozen/language/for_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 30 05:56:11 PDT 2009


Revision: 1264
          http://trac.macosforge.org/projects/ruby/changeset/1264
Author:   vincent.isambart at gmail.com
Date:     2009-03-30 05:56:11 -0700 (Mon, 30 Mar 2009)
Log Message:
-----------
forgot to uncomment a working spec

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/frozen/language/for_spec.rb

Modified: MacRuby/branches/experimental/spec/frozen/language/for_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/language/for_spec.rb	2009-03-30 12:51:26 UTC (rev 1263)
+++ MacRuby/branches/experimental/spec/frozen/language/for_spec.rb	2009-03-30 12:56:11 UTC (rev 1264)
@@ -141,18 +141,16 @@
     j.should == 13
   end
 
-  # MacRuby TODO: This does not compile yet.
-  #
-  # it "repeats current iteration with 'redo'" do
-  #   j = 0
-  #   for i in 1..3
-  #     j += i
-  #     
-  #     redo if i == 2 && j < 4
-  #   end
-  #   
-  #   j.should == 8
-  # end
+  it "repeats current iteration with 'redo'" do
+    j = 0
+    for i in 1..3
+      j += i
+      
+      redo if i == 2 && j < 4
+    end
+    
+    j.should == 8
+  end
 end
 
 language_version __FILE__, "for"
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090330/d6e67ec2/attachment.html>


More information about the macruby-changes mailing list