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

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 25 05:16:11 PDT 2009


Revision: 1148
          http://trac.macosforge.org/projects/ruby/changeset/1148
Author:   vincent.isambart at gmail.com
Date:     2009-03-25 05:16:10 -0700 (Wed, 25 Mar 2009)
Log Message:
-----------
added a strange crashing test

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

Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb	2009-03-25 12:14:55 UTC (rev 1147)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-25 12:16:10 UTC (rev 1148)
@@ -840,6 +840,13 @@
     def bar(a = foo); end
     bar
   }
+
+  assert '42', %{
+    def foo() yield 1, 2 end
+    x = 1
+    w = 42
+    foo { |x, y = :y| p w }
+  }
 end
 
 test "blocks" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090325/ba881e30/attachment.html>


More information about the macruby-changes mailing list