[macruby-changes] [1261] MacRuby/branches/experimental/test_roxor.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Mar 30 05:18:03 PDT 2009


Revision: 1261
          http://trac.macosforge.org/projects/ruby/changeset/1261
Author:   vincent.isambart at gmail.com
Date:     2009-03-30 05:18:02 -0700 (Mon, 30 Mar 2009)
Log Message:
-----------
added a failing test (yield in a block)

It's at least one the reasons some for specs fail

Modified Paths:
--------------
    MacRuby/branches/experimental/test_roxor.rb

Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb	2009-03-30 11:53:26 UTC (rev 1260)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-30 12:18:02 UTC (rev 1261)
@@ -1057,6 +1057,7 @@
 
   assert '42', "x=42; 1.times { 1.times { 1.times { p x } } }"
 
+  assert '42', "def f; 1.times { yield 42 }; end; f {|x| p x}"
 end
 
 test "exception" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090330/ddb9d2d5/attachment-0001.html>


More information about the macruby-changes mailing list