[macruby-changes] [1295] MacRuby/branches/experimental/spec/frozen/language/for_spec.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 2 22:31:02 PDT 2009
Revision: 1295
http://trac.macosforge.org/projects/ruby/changeset/1295
Author: lsansonetti at 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:
--------------
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-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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090402/eb554930/attachment-0001.html>
More information about the macruby-changes
mailing list