[macruby-changes] [3526] MacRuby/trunk/test_vm
source_changes at macosforge.org
source_changes at macosforge.org
Sun Feb 14 00:06:10 PST 2010
Revision: 3526
http://trac.macosforge.org/projects/ruby/changeset/3526
Author: vincent.isambart at gmail.com
Date: 2010-02-14 00:06:07 -0800 (Sun, 14 Feb 2010)
Log Message:
-----------
fixed incorrect test_vm tests (found by testing with the last 1.9)
Modified Paths:
--------------
MacRuby/trunk/test_vm/block.rb
MacRuby/trunk/test_vm/dispatch.rb
Modified: MacRuby/trunk/test_vm/block.rb
===================================================================
--- MacRuby/trunk/test_vm/block.rb 2010-02-14 02:39:54 UTC (rev 3525)
+++ MacRuby/trunk/test_vm/block.rb 2010-02-14 08:06:07 UTC (rev 3526)
@@ -734,5 +734,5 @@
def foo
lambda { yield }.call
end
- p(foo { :ok })'
-}
\ No newline at end of file
+ p(foo { :ok })
+}
Modified: MacRuby/trunk/test_vm/dispatch.rb
===================================================================
--- MacRuby/trunk/test_vm/dispatch.rb 2010-02-14 02:39:54 UTC (rev 3525)
+++ MacRuby/trunk/test_vm/dispatch.rb 2010-02-14 08:06:07 UTC (rev 3526)
@@ -13,7 +13,7 @@
assert "42", "def foo(x, y, z=123); x+y+z; end; p foo(20, 20, 2)"
assert "42", "def foo(x, y=20, z=2); x+y+z; end; p foo(20)"
assert "42", "def foo(x, y=123, z=2); x+y+z; end; p foo(30, 10)"
-assert "42", "def foo; 42; end; p self.foo"
+assert "42", "def foo; :ko; end; begin; p self.foo; rescue NoMethodError; p 42 end"
assert "126", "def foo(a=b=c=42); a+b+c; end; p foo"
assert "[42, nil]", "def f(a=X::x=b=1) p [a, b] end; f(42)"
@@ -442,8 +442,9 @@
begin
A.new
+ p :ok
rescue ArgumentError
- p :ok
+ p :ko
end
}
@@ -495,4 +496,4 @@
$SAFE=4
s="omg"
s.freeze
-}
\ No newline at end of file
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100214/80b4516b/attachment-0001.html>
More information about the macruby-changes
mailing list