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

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 17 17:53:48 PDT 2009


Revision: 976
          http://trac.macosforge.org/projects/ruby/changeset/976
Author:   lsansonetti at apple.com
Date:     2009-03-17 17:53:48 -0700 (Tue, 17 Mar 2009)
Log Message:
-----------
corrected a test (returns nil in 1.8 but [] in 1.9)

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

Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb	2009-03-18 00:44:28 UTC (rev 975)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-18 00:53:48 UTC (rev 976)
@@ -602,7 +602,7 @@
   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 "[]", "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)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090317/cb1a11b2/attachment-0001.html>


More information about the macruby-changes mailing list