[macruby-changes] [2997] MacRuby/trunk/test_vm/eval.rb

source_changes at macosforge.org source_changes at macosforge.org
Thu Nov 12 23:58:52 PST 2009


Revision: 2997
          http://trac.macosforge.org/projects/ruby/changeset/2997
Author:   lsansonetti at apple.com
Date:     2009-11-12 23:58:52 -0800 (Thu, 12 Nov 2009)
Log Message:
-----------
added a test

Modified Paths:
--------------
    MacRuby/trunk/test_vm/eval.rb

Modified: MacRuby/trunk/test_vm/eval.rb
===================================================================
--- MacRuby/trunk/test_vm/eval.rb	2009-11-11 23:41:01 UTC (rev 2996)
+++ MacRuby/trunk/test_vm/eval.rb	2009-11-13 07:58:52 UTC (rev 2997)
@@ -140,3 +140,10 @@
   p eval "yield", b
 }
 
+assert '42', %{
+  class Foo
+    FOO=42
+    class_eval("def foo; FOO; end")
+  end
+  p Foo.new.foo
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091112/f01de3e9/attachment.html>


More information about the macruby-changes mailing list