[macruby-changes] [4808] MacRuby/trunk/test_vm/caller.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Oct 19 13:28:06 PDT 2010
Revision: 4808
http://trac.macosforge.org/projects/ruby/changeset/4808
Author: lsansonetti at apple.com
Date: 2010-10-19 13:28:04 -0700 (Tue, 19 Oct 2010)
Log Message:
-----------
add reduction for bug #961
Modified Paths:
--------------
MacRuby/trunk/test_vm/caller.rb
Modified: MacRuby/trunk/test_vm/caller.rb
===================================================================
--- MacRuby/trunk/test_vm/caller.rb 2010-10-19 05:56:37 UTC (rev 4807)
+++ MacRuby/trunk/test_vm/caller.rb 2010-10-19 20:28:04 UTC (rev 4808)
@@ -35,3 +35,15 @@
a = A.new
puts a.g
}
+
+assert "9\n6\n8", %{
+ def foo
+ puts caller.join('').scan(/(\\d+):/)
+ end
+ def bar
+ yield
+ end
+ bar do
+ foo
+ end
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101019/2e98889b/attachment.html>
More information about the macruby-changes
mailing list