[macruby-changes] [2851] MacRuby/trunk/test_vm/module.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Oct 19 12:35:10 PDT 2009


Revision: 2851
          http://trac.macosforge.org/projects/ruby/changeset/2851
Author:   eloy.de.enige at gmail.com
Date:     2009-10-19 12:35:08 -0700 (Mon, 19 Oct 2009)
Log Message:
-----------
Added an extra failing test_vm test to illustrate Modules don't allow instantiation. #378 Keith Gautreaux.

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

Modified: MacRuby/trunk/test_vm/module.rb
===================================================================
--- MacRuby/trunk/test_vm/module.rb	2009-10-19 03:28:40 UTC (rev 2850)
+++ MacRuby/trunk/test_vm/module.rb	2009-10-19 19:35:08 UTC (rev 2851)
@@ -45,3 +45,13 @@
     p :ok
   end
 }
+
+assert ':ok', %{
+  M = Module.new
+  begin
+    M.new
+    p :ko
+  rescue NoMethodError
+    p :ok
+  end
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091019/35d357ef/attachment.html>


More information about the macruby-changes mailing list