[macruby-changes] [1561] MacRuby/branches/experimental/test_vm/block.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri May 8 16:36:37 PDT 2009


Revision: 1561
          http://trac.macosforge.org/projects/ruby/changeset/1561
Author:   vincent.isambart at gmail.com
Date:     2009-05-08 16:36:37 -0700 (Fri, 08 May 2009)
Log Message:
-----------
added a more complicated version of yesterday's test

Modified Paths:
--------------
    MacRuby/branches/experimental/test_vm/block.rb

Modified: MacRuby/branches/experimental/test_vm/block.rb
===================================================================
--- MacRuby/branches/experimental/test_vm/block.rb	2009-05-08 23:26:36 UTC (rev 1560)
+++ MacRuby/branches/experimental/test_vm/block.rb	2009-05-08 23:36:37 UTC (rev 1561)
@@ -426,3 +426,18 @@
   end
   c { p :ok }
 }
+
+assert ':ok', %{
+  def a
+    1.times do yield end
+  end
+  def b(&block)
+    a(&block)
+  end
+  def c
+    b do
+      yield
+    end
+  end
+  c { p :ok }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090508/6579c6f1/attachment.html>


More information about the macruby-changes mailing list