[macruby-changes] [993] MacRuby/branches/experimental/test_roxor.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Mar 19 10:51:50 PDT 2009
Revision: 993
http://trac.macosforge.org/projects/ruby/changeset/993
Author: eloy.de.enige at gmail.com
Date: 2009-03-19 10:51:50 -0700 (Thu, 19 Mar 2009)
Log Message:
-----------
Added failing tests for module_eval. (Added to module tests, or should they go in the eval tests?)
Modified Paths:
--------------
MacRuby/branches/experimental/test_roxor.rb
Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb 2009-03-19 14:56:04 UTC (rev 992)
+++ MacRuby/branches/experimental/test_roxor.rb 2009-03-19 17:51:50 UTC (rev 993)
@@ -514,6 +514,9 @@
assert "M", "module M; end; p M"
assert "Module", "module M; end; p M.class"
+ assert ":ok", "module M; module_eval 'p :ok'; end"
+ assert ":ok", "module M; module_eval 'def self.foo; :ok; end'; end; p M.foo"
+
end
test "attr" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090319/011cde74/attachment.html>
More information about the macruby-changes
mailing list