yarv-diff:178
From: ko1 atdot.net
Date: 28 Dec 2005 07:50:56 -0000
Subject: [yarv-diff:178] r336 - in trunk: . test/ruby
Author: aamine
Date: 2005-12-28 16:50:55 +0900 (Wed, 28 Dec 2005)
New Revision: 336
Modified:
trunk/ChangeLog
trunk/test/ruby/test_eval.rb
trunk/test/ruby/test_iterator.rb
trunk/test/ruby/test_lambda.rb
trunk/test/ruby/test_proc.rb
Log:
* test/ruby/test_eval.rb: add TODO comment.
* test/ruby/test_iterator.rb: rename YARVCore::VM::Proc -> Proc (tmp).
* test/ruby/test_lambda.rb: use assert_fail.
* test/ruby/test_proc.rb: ditto.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2005-12-28 07:29:33 UTC (rev 335)
+++ trunk/ChangeLog 2005-12-28 07:50:55 UTC (rev 336)
@@ -4,6 +4,18 @@
# from Mon, 03 May 2004 01:24:19 +0900
#
+2005-12-28(Wed) 16:49:55 +0900 Minero Aoki <aamine loveruby.net>
+
+ * test/ruby/test_eval.rb: add TODO comment.
+
+ * test/ruby/test_iterator.rb: rename YARVCore::VM::Proc -> Proc
+ (tmp).
+
+ * test/ruby/test_lambda.rb: use assert_fail.
+
+ * test/ruby/test_proc.rb: ditto.
+
+
2005-12-28(Wed) 16:28:35 +0900 Minero Aoki <aamine loveruby.net>
* test/ruby/test_clone.rb: removed (tmp).
Modified: trunk/test/ruby/test_eval.rb
===================================================================
--- trunk/test/ruby/test_eval.rb 2005-12-28 07:29:33 UTC (rev 335)
+++ trunk/test/ruby/test_eval.rb 2005-12-28 07:50:55 UTC (rev 336)
@@ -2,7 +2,7 @@
class Object
unless method_defined?(:funcall)
- alias funcall __send__ # tmp
+ alias funcall __send__ # TODO: tmp
end
end
Modified: trunk/test/ruby/test_iterator.rb
===================================================================
--- trunk/test/ruby/test_iterator.rb 2005-12-28 07:29:33 UTC (rev 335)
+++ trunk/test/ruby/test_iterator.rb 2005-12-28 07:50:55 UTC (rev 336)
@@ -1,3 +1,10 @@
+# TODO: tmp
+class Object
+ Proc_orig = Proc
+ remove_const :Proc
+ Proc = YARVCore::VM::Proc
+end
+
require 'test/unit'
class Array
Modified: trunk/test/ruby/test_lambda.rb
===================================================================
--- trunk/test/ruby/test_lambda.rb 2005-12-28 07:29:33 UTC (rev 335)
+++ trunk/test/ruby/test_lambda.rb 2005-12-28 07:50:55 UTC (rev 336)
@@ -1,7 +1,11 @@
require 'test/unit'
+class TestLambdaParameters < Test::Unit::TestCase
+
+ def test_dummy
+ assert_fail "TODO: `->' syntax not supported"
+ end
=begin
-class TestLambdaParameters < Test::Unit::TestCase
def test_call_simple
assert_equal(1, ->(a){ a }.call(1))
assert_equal([1,2], ->(a,b){ [a,b] }.call(1,2))
@@ -51,5 +55,5 @@
2.times ->(_){ a += 1 }
assert_equal(a, 2)
end
+=end
end
-=end
Modified: trunk/test/ruby/test_proc.rb
===================================================================
--- trunk/test/ruby/test_proc.rb 2005-12-28 07:29:33 UTC (rev 335)
+++ trunk/test/ruby/test_proc.rb 2005-12-28 07:50:55 UTC (rev 336)
@@ -87,15 +87,17 @@
assert_not_equal(a, b)
end
-=begin # |&b| not supported yet
def test_block_par
+ assert_fail "TODO: block parameter |&b| not supported"
+=begin
assert_equal(10, Proc.new{|&b| b.call(10)}.call {|x| x})
assert_equal(12, Proc.new{|a,&b| b.call(a)}.call(12) {|x| x})
+=end
end
-=end
-=begin # safe setter does not supported yet
def test_safe
+ assert_fail "TODO: $SAFE setter not supported"
+=begin
safe = $SAFE
c = Class.new
x = c.new
@@ -124,6 +126,6 @@
assert_equal(safe, $SAFE)
assert_equal(safe + 1, proc {x.method(:inc).to_proc.call; $SAFE}.call)
assert_equal(safe, $SAFE)
+=end
end
-=end
end
--
ML: yarv-diff quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml