[macruby-changes] [4017] MacRuby/trunk/test_vm/block.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue May 4 13:42:21 PDT 2010


Revision: 4017
          http://trac.macosforge.org/projects/ruby/changeset/4017
Author:   lsansonetti at apple.com
Date:     2010-05-04 13:42:19 -0700 (Tue, 04 May 2010)
Log Message:
-----------
adding reduction for bug #674 (thanks Brian Marick)

Modified Paths:
--------------
    MacRuby/trunk/test_vm/block.rb

Modified: MacRuby/trunk/test_vm/block.rb
===================================================================
--- MacRuby/trunk/test_vm/block.rb	2010-05-04 05:50:07 UTC (rev 4016)
+++ MacRuby/trunk/test_vm/block.rb	2010-05-04 20:42:19 UTC (rev 4017)
@@ -730,9 +730,19 @@
   p arrays
 }
 
-assert ':ok' ,%{
+assert ':ok', %{
   def foo
     lambda { yield }.call
   end
   p(foo { :ok })
 }
+
+assert ':ok', %{
+  def foo
+    bar { p :ok if block_given? }
+  end
+  def bar(&b)
+    b.call
+  end
+  foo
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100504/e3f9a5c5/attachment.html>


More information about the macruby-changes mailing list