[macruby-changes] [952] MacRuby/branches/experimental/test_roxor.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 17 04:35:00 PDT 2009
Revision: 952
http://trac.macosforge.org/projects/ruby/changeset/952
Author: vincent.isambart at gmail.com
Date: 2009-03-17 04:34:57 -0700 (Tue, 17 Mar 2009)
Log Message:
-----------
added a test for what currently makes mspec crash
Modified Paths:
--------------
MacRuby/branches/experimental/test_roxor.rb
Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb 2009-03-17 11:00:01 UTC (rev 951)
+++ MacRuby/branches/experimental/test_roxor.rb 2009-03-17 11:34:57 UTC (rev 952)
@@ -631,6 +631,13 @@
assert ":ok", "def f(); end; begin f(1); rescue ArgumentError; p :ok; rescue; p :ko; end"
assert ":ok", "def f(a); end; begin f; rescue ArgumentError; p :ok; rescue; p :ko; end"
+
+ assert ":ok", %{
+ def func()
+ 1.times { |func| func() }
+ end
+ p :ok
+ }
end
test "blocks" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090317/1a0be327/attachment-0001.html>
More information about the macruby-changes
mailing list