Revision
1144
Author
lsansonetti@apple.com
Date
2009-03-24 20:26:11 -0700 (Tue, 24 Mar 2009)

Log Message

added failing test

Modified Paths

Diff

Modified: MacRuby/branches/experimental/test_roxor.rb (1143 => 1144)


--- 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