[macruby-changes] [1417] MacRuby/branches/experimental/test_vm/dispatch.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Apr 13 15:09:38 PDT 2009


Revision: 1417
          http://trac.macosforge.org/projects/ruby/changeset/1417
Author:   vincent.isambart at gmail.com
Date:     2009-04-13 15:09:37 -0700 (Mon, 13 Apr 2009)
Log Message:
-----------
added a few 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-04-13 21:04:12 UTC (rev 1416)
+++ MacRuby/branches/experimental/test_vm/dispatch.rb	2009-04-13 22:09:37 UTC (rev 1417)
@@ -248,3 +248,12 @@
   foo(30000000)
   p 42
 }
+
+assert 'true', 'p Object.new.methods.include?(:object_id)'
+assert "false\ntrue", %{
+  obj = Object.new
+  meta = class << obj; self; end
+  p obj.respond_to?(:bar) # without this call to respond_to it works fine
+  meta.class_eval { def bar; end }
+  p obj.respond_to?(:bar)
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090413/d4dbda84/attachment.html>


More information about the macruby-changes mailing list