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

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 24 07:44:36 PDT 2009


Revision: 1137
          http://trac.macosforge.org/projects/ruby/changeset/1137
Author:   eloy.de.enige at gmail.com
Date:     2009-03-24 07:44:35 -0700 (Tue, 24 Mar 2009)
Log Message:
-----------
Added failing test for constant lookup.

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

Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb	2009-03-24 14:37:21 UTC (rev 1136)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-24 14:44:35 UTC (rev 1137)
@@ -419,6 +419,20 @@
     p Z::Y.new.foo
   }
 
+  assert '42', %q{
+    class A
+      module B
+        def foo
+          42
+        end
+      end
+      module C
+        extend B
+      end
+    end
+    p A::C.foo
+  }
+
   assert 'true', 'p ::String == String'
 
 end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090324/8d94bdf6/attachment-0001.html>


More information about the macruby-changes mailing list