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

source_changes at macosforge.org source_changes at macosforge.org
Sat May 30 19:31:32 PDT 2009


Revision: 1670
          http://trac.macosforge.org/projects/ruby/changeset/1670
Author:   lsansonetti at apple.com
Date:     2009-05-30 19:31:32 -0700 (Sat, 30 May 2009)
Log Message:
-----------
adding failing test

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-05-31 01:48:30 UTC (rev 1669)
+++ MacRuby/branches/experimental/test_vm/dispatch.rb	2009-05-31 02:31:32 UTC (rev 1670)
@@ -73,6 +73,14 @@
   p send(:foo)
 }
 
+assert ":ok", %{
+  begin
+    send(:does_not_exist)
+  rescue NoMethodError
+    p :ok
+  end
+}
+
 assert "42", "def foo; return 42; end; p foo"
 assert "42", "def foo(x); if x; return 42; end; end; p foo(true)"
 assert "42", "def foo(x); if x; x += 2; return x; end; end; p foo(40)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090530/dafb42db/attachment.html>


More information about the macruby-changes mailing list