Modified: MacRuby/branches/experimental/test_roxor.rb (1281 => 1282)
--- MacRuby/branches/experimental/test_roxor.rb 2009-03-31 11:05:18 UTC (rev 1281)
+++ MacRuby/branches/experimental/test_roxor.rb 2009-03-31 20:55:46 UTC (rev 1282)
@@ -1064,8 +1064,9 @@
}
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}"
+ assert '42', "def foo; x = 42; proc { x }; end; p foo.call"
- assert '42', "def f; 1.times { yield 42 }; end; f {|x| p x}"
end
test "exception" do