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

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 1 13:57:40 PDT 2009


Revision: 2451
          http://trac.macosforge.org/projects/ruby/changeset/2451
Author:   eloy.de.enige at gmail.com
Date:     2009-09-01 13:57:40 -0700 (Tue, 01 Sep 2009)
Log Message:
-----------
Added failing test_vm test about eval exceptions not having a backtrace. Ticket #310 by dev.

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

Modified: MacRuby/trunk/test_vm/eval.rb
===================================================================
--- MacRuby/trunk/test_vm/eval.rb	2009-09-01 18:38:00 UTC (rev 2450)
+++ MacRuby/trunk/test_vm/eval.rb	2009-09-01 20:57:40 UTC (rev 2451)
@@ -111,3 +111,11 @@
 assert '42', 'eval("def test; a = 42; p a; end; test")'
 assert '42', 'eval("a = 42; def test; a = 0; end; test; p a", TOPLEVEL_BINDING)'
 assert '42', 'eval("a = 42; def test; a = 0; end; test; p a")'
+
+assert 'true', %{
+  begin
+    eval("1 = 1")
+  rescue Exception => e
+  end
+  p e.backtrace.kind_of? Array
+}
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090901/bc330b22/attachment.html>


More information about the macruby-changes mailing list