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

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 24 20:26:12 PDT 2009


Revision: 1144
          http://trac.macosforge.org/projects/ruby/changeset/1144
Author:   lsansonetti at apple.com
Date:     2009-03-24 20:26:11 -0700 (Tue, 24 Mar 2009)
Log Message:
-----------
added failing 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 02:36:57 UTC (rev 1143)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-25 03:26:11 UTC (rev 1144)
@@ -620,6 +620,8 @@
   assert "42", "def foo(x, y=20, z=2); x+y+z; end; p foo(20)"
   assert "42", "def foo(x, y=123, z=2); x+y+z; end; p foo(30, 10)"
 
+  assert "126", "def foo(a=b=c=42); a+b+c; end; p foo"
+
   assert "42", "def foo; 1; end; i = 0; while i < 42; i += foo; end; p i"
   assert "42", %q{
     class X; def foo; 15; end; end
@@ -1418,4 +1420,4 @@
 
   assert ":ok", "puts ':ok'.encode('US-ASCII')"
 
-end
\ No newline at end of file
+end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090324/0034fbd6/attachment.html>


More information about the macruby-changes mailing list