Revision: 1264 http://trac.macosforge.org/projects/ruby/changeset/1264 Author: vincent.isambart@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