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

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 17 16:07:19 PDT 2009


Revision: 964
          http://trac.macosforge.org/projects/ruby/changeset/964
Author:   eloy.de.enige at gmail.com
Date:     2009-03-17 16:07:18 -0700 (Tue, 17 Mar 2009)
Log Message:
-----------
Added failing test for: return *?\226?\128?\166

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

Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb	2009-03-17 23:00:08 UTC (rev 963)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-17 23:07:18 UTC (rev 964)
@@ -596,6 +596,8 @@
   assert "42", "def foo=(x); @x = x + 1; end; self.foo=41; p @x"
   assert "42", "def []=(x, y); @x = x + y; end; self[40]=2; p @x"
 
+  assert "nil", "def foo; return *[]; end; p foo"
+
   assert "42", "def foo(x,y,z); x+y+z; end; a=[20,10,12]; p foo(*a)"
   assert "42", "def foo(x,y,z); x+y+z; end; a=[20,10]; p foo(*a, 12)"
   assert "42", "def foo(x,y,z); x+y+z; end; a=[20,10]; p foo(12, *a)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090317/d2909f12/attachment-0001.html>


More information about the macruby-changes mailing list