[macruby-changes] [2195] MacRuby/branches/experimental/test_vm/dispatch.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 3 16:03:31 PDT 2009


Revision: 2195
          http://trac.macosforge.org/projects/ruby/changeset/2195
Author:   vincent.isambart at gmail.com
Date:     2009-08-03 16:03:29 -0700 (Mon, 03 Aug 2009)
Log Message:
-----------
added failing tests

Modified Paths:
--------------
    MacRuby/branches/experimental/test_vm/dispatch.rb

Modified: MacRuby/branches/experimental/test_vm/dispatch.rb
===================================================================
--- MacRuby/branches/experimental/test_vm/dispatch.rb	2009-08-03 22:47:40 UTC (rev 2194)
+++ MacRuby/branches/experimental/test_vm/dispatch.rb	2009-08-03 23:03:29 UTC (rev 2195)
@@ -338,3 +338,15 @@
   end
   Y.new.foo(42)
 }
+
+assert %{"hello world"\n42}, %{
+  class X; def foo(x,y); p x,y; end; end
+  class Y < X; def foo(x,*args); x << ' world'; args[0] = 42; super; end; end
+  Y.new.foo('hello', 1)
+}
+
+assert %{"hello world"\n42}, %{
+  class X; def foo(x,y); p x,y; end; end
+  class Y < X; def foo(x,*args); x << ' world'; args = 42; super; end; end
+  Y.new.foo('hello', 1)
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090803/06a167d9/attachment.html>


More information about the macruby-changes mailing list