[macruby-changes] [1188] MacRuby/branches/experimental

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 26 16:37:53 PDT 2009


Revision: 1188
          http://trac.macosforge.org/projects/ruby/changeset/1188
Author:   eloy.de.enige at gmail.com
Date:     2009-03-26 16:37:53 -0700 (Thu, 26 Mar 2009)
Log Message:
-----------
Tagged failing examples of the yield spec and added it to the partially green list. TODO: Had to comment 1 spec which does not compile yet.

Modified Paths:
--------------
    MacRuby/branches/experimental/rakelib/spec.rake
    MacRuby/branches/experimental/spec/frozen/language/yield_spec.rb

Added Paths:
-----------
    MacRuby/branches/experimental/spec/frozen/tags/macruby/language/yield_tags.txt

Modified: MacRuby/branches/experimental/rakelib/spec.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/spec.rake	2009-03-26 23:37:38 UTC (rev 1187)
+++ MacRuby/branches/experimental/rakelib/spec.rake	2009-03-26 23:37:53 UTC (rev 1188)
@@ -42,6 +42,7 @@
     private
     return
     throw
+    yield
   }
   
   MSPEC_RUN = "./miniruby -v -I./mspec/lib -I./lib ./mspec/bin/mspec-run"

Modified: MacRuby/branches/experimental/spec/frozen/language/yield_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/language/yield_spec.rb	2009-03-26 23:37:38 UTC (rev 1187)
+++ MacRuby/branches/experimental/spec/frozen/language/yield_spec.rb	2009-03-26 23:37:53 UTC (rev 1188)
@@ -27,15 +27,16 @@
     def f; yield *[*[1]]; end;  f {|a| a.should == 1 }
   end
 
-  # MR: critical
-  it "assigns objects followed by splatted objects to block variables" do
-    def f; yield 1, *nil; end;     f {|a, b| b.should == nil }
-    def f; yield 1, *1; end;       f {|a, b| b.should == 1 }
-    def f; yield 1, *[1]; end;     f {|a, b| b.should == 1 }
-    def f; yield 1, *[nil]; end;   f {|a, b| b.should == nil }
-    def f; yield 1, *[[]]; end;    f {|a, b| b.should == [] }
-    def f; yield 1, *[*[1]]; end;  f {|a, b| b.should == 1 }
-  end
+  # MacRuby TODO: These do not compile yet.
+  #
+  # it "assigns objects followed by splatted objects to block variables" do
+  #   def f; yield 1, *nil; end;     f {|a, b| b.should == nil }
+  #   def f; yield 1, *1; end;       f {|a, b| b.should == 1 }
+  #   def f; yield 1, *[1]; end;     f {|a, b| b.should == 1 }
+  #   def f; yield 1, *[nil]; end;   f {|a, b| b.should == nil }
+  #   def f; yield 1, *[[]]; end;    f {|a, b| b.should == [] }
+  #   def f; yield 1, *[*[1]]; end;  f {|a, b| b.should == 1 }
+  # end
 
   it "assigns objects to block variables that include the splat operator inside the block" do
     def f; yield; end;          f {|*a| a.should == [] }

Added: MacRuby/branches/experimental/spec/frozen/tags/macruby/language/yield_tags.txt
===================================================================
--- MacRuby/branches/experimental/spec/frozen/tags/macruby/language/yield_tags.txt	                        (rev 0)
+++ MacRuby/branches/experimental/spec/frozen/tags/macruby/language/yield_tags.txt	2009-03-26 23:37:53 UTC (rev 1188)
@@ -0,0 +1,4 @@
+fails:Assignment via yield assigns splatted objects to block variables
+fails:Assignment via yield assigns splatted objects to block variables
+fails:Assignment via yield assigns objects to splatted block variables that include the splat operator inside the block
+fails:Assignment via yield assigns splatted objects to multiple block variables
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090326/e6d66998/attachment-0001.html>


More information about the macruby-changes mailing list