Revision
1295
Author
lsansonetti@apple.com
Date
2009-04-02 22:31:02 -0700 (Thu, 02 Apr 2009)

Log Message

uncommented some code that now compiles (and runs, yay)

Modified Paths

Diff

Modified: MacRuby/branches/experimental/spec/frozen/language/for_spec.rb (1294 => 1295)


--- MacRuby/branches/experimental/spec/frozen/language/for_spec.rb	2009-04-03 05:30:36 UTC (rev 1294)
+++ MacRuby/branches/experimental/spec/frozen/language/for_spec.rb	2009-04-03 05:31:02 UTC (rev 1295)
@@ -49,16 +49,15 @@
     n.should == 3
   end
   
-  # TODO: commented out due to a compiler error
-  #it "allows a class variable as an iterator name" do
-  #  m = [1,2,3]
-  #  n = 0
-  #  for @@var in m
-  #    n += 1
-  #  end
-  #  @@var.should == 3
-  #  n.should == 3
-  #end
+  it "allows a class variable as an iterator name" do
+    m = [1,2,3]
+    n = 0
+    for @@var in m
+      n += 1
+    end
+    @@var.should == 3
+    n.should == 3
+  end
 
   it "splats multiple arguments together if there are fewer arguments than values" do
     class OFor
@@ -153,4 +152,4 @@
   end
 end
 
-language_version __FILE__, "for"
\ No newline at end of file
+language_version __FILE__, "for"