[macruby-changes] [1107] MacRuby/branches/experimental/spec/frozen/language

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 23 08:01:18 PDT 2009


Revision: 1107
          http://trac.macosforge.org/projects/ruby/changeset/1107
Author:   eloy.de.enige at gmail.com
Date:     2009-03-23 08:01:16 -0700 (Mon, 23 Mar 2009)
Log Message:
-----------
Moved a 1.8 specific 'for' example into a language version specific file.

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

Added Paths:
-----------
    MacRuby/branches/experimental/spec/frozen/language/versions/for_1.8.rb

Modified: MacRuby/branches/experimental/spec/frozen/language/for_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/language/for_spec.rb	2009-03-23 14:19:56 UTC (rev 1106)
+++ MacRuby/branches/experimental/spec/frozen/language/for_spec.rb	2009-03-23 15:01:16 UTC (rev 1107)
@@ -151,15 +151,6 @@
     
     j.should == 8
   end
-  
-  it "repeats the loop from the beginning with 'retry'" do
-    j = 0
-    for i in 1..5
-      j += i
-      
-      retry if i == 3 && j < 7
-    end
-    
-    j.should == 21
-  end
 end
+
+language_version __FILE__, "for"
\ No newline at end of file

Added: MacRuby/branches/experimental/spec/frozen/language/versions/for_1.8.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/language/versions/for_1.8.rb	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/language/versions/for_1.8.rb	2009-03-23 15:01:16 UTC (rev 1107)
@@ -0,0 +1,12 @@
+describe "The for expression" do
+  it "repeats the loop from the beginning with 'retry'" do
+    j = 0
+    for i in 1..5
+      j += i
+
+      retry if i == 3 && j < 7
+    end
+
+    j.should == 21
+  end
+end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090323/f2388df9/attachment.html>


More information about the macruby-changes mailing list