[macruby-changes] [1600] MacRuby/branches/experimental/test_vm/dispatch.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue May 26 13:27:12 PDT 2009
Revision: 1600
http://trac.macosforge.org/projects/ruby/changeset/1600
Author: lsansonetti at apple.com
Date: 2009-05-26 13:27:12 -0700 (Tue, 26 May 2009)
Log Message:
-----------
adding 2 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-05-26 20:10:54 UTC (rev 1599)
+++ MacRuby/branches/experimental/test_vm/dispatch.rb 2009-05-26 20:27:12 UTC (rev 1600)
@@ -257,3 +257,17 @@
meta.class_eval { def bar; end }
p obj.respond_to?(:bar)
}
+
+assert '42', %{
+ module M; def foo; 42; end; end
+ module M2; include M; end
+ class X; include M2; end
+ p X.new.foo
+}
+
+assert '42', %{
+ module M; def foo; 42; end; end
+ module M2; def bar; foo; end; include M; end
+ class X; include M2; end
+ p X.new.bar
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090526/9e24958d/attachment.html>
More information about the macruby-changes
mailing list