Revision
1261
Author
vincent.isambart@gmail.com
Date
2009-03-30 05:18:02 -0700 (Mon, 30 Mar 2009)

Log Message

added a failing test (yield in a block)

It's at least one the reasons some for specs fail

Modified Paths

Diff

Modified: MacRuby/branches/experimental/test_roxor.rb (1260 => 1261)


--- MacRuby/branches/experimental/test_roxor.rb	2009-03-30 11:53:26 UTC (rev 1260)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-30 12:18:02 UTC (rev 1261)
@@ -1057,6 +1057,7 @@
 
   assert '42', "x=42; 1.times { 1.times { 1.times { p x } } }"
 
+  assert '42', "def f; 1.times { yield 42 }; end; f {|x| p x}"
 end
 
 test "exception" do