[macruby-changes] [1560] MacRuby/branches/experimental/test_vm/block.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 8 16:26:36 PDT 2009
Revision: 1560
http://trac.macosforge.org/projects/ruby/changeset/1560
Author: lsansonetti at apple.com
Date: 2009-05-08 16:26:36 -0700 (Fri, 08 May 2009)
Log Message:
-----------
better test (that works with 1.9)
Modified Paths:
--------------
MacRuby/branches/experimental/test_vm/block.rb
Modified: MacRuby/branches/experimental/test_vm/block.rb
===================================================================
--- MacRuby/branches/experimental/test_vm/block.rb 2009-05-08 23:24:25 UTC (rev 1559)
+++ MacRuby/branches/experimental/test_vm/block.rb 2009-05-08 23:26:36 UTC (rev 1560)
@@ -397,9 +397,11 @@
}
assert ':ok', %{
- def foo; p :ok if block_given?; self; end
- def bar; p :ok if block_given?; self; end
- foo.bar {}
+ class X
+ def foo; p :ko if block_given?; self; end
+ def bar; p :ok if block_given?; self; end
+ end
+ X.new.foo.bar {}
}
assert ':ok', %{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090508/ad6e884d/attachment.html>
More information about the macruby-changes
mailing list