[macruby-changes] [1034] MacRuby/branches/experimental/test_roxor.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 20 17:56:04 PDT 2009
Revision: 1034
http://trac.macosforge.org/projects/ruby/changeset/1034
Author: eloy.de.enige at gmail.com
Date: 2009-03-20 17:56:04 -0700 (Fri, 20 Mar 2009)
Log Message:
-----------
Added failing test for instance_eval.
Modified Paths:
--------------
MacRuby/branches/experimental/test_roxor.rb
Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb 2009-03-21 00:53:52 UTC (rev 1033)
+++ MacRuby/branches/experimental/test_roxor.rb 2009-03-21 00:56:04 UTC (rev 1034)
@@ -1096,6 +1096,8 @@
p Foo.new.bar('p foo', binding)
}
+ assert "42", "class A; def foo; @x; end; end; x = A.new; x.instance_eval { @x = 42 }; p x.foo"
+
assert ":ok", "module M; module_eval 'p :ok'; end"
assert ":ok", "module M; module_eval 'def self.foo; :ok; end'; end; p M.foo"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090320/65b620d7/attachment-0001.html>
More information about the macruby-changes
mailing list