1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_iterator.rb: fix test to 1.9 spec.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-07-06 06:55:19 +00:00
parent b2d827cc5b
commit 9aa9c07c07
2 changed files with 11 additions and 7 deletions

View file

@ -1,3 +1,7 @@
Fri Jul 6 15:37:48 2007 Koichi Sasada <ko1@atdot.net>
* test/ruby/test_iterator.rb: fix test to 1.9 spec.
Fri Jul 6 15:21:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_interrupt): suppress a gcc's officious warning.

View file

@ -150,22 +150,22 @@ class TestIterator < Test::Unit::TestCase
IterTest.new([1]).each1 {|x| assert_equal(1, x)}
IterTest.new([2]).each2 {|x| assert_equal([2], x)}
IterTest.new([4]).each4 {|x| assert_equal(4, x)}
IterTest.new([5]).each5 {|x| assert_equal([5], x)}
IterTest.new([5]).each5 {|x| assert_equal(5, x)}
IterTest.new([6]).each6 {|x| assert_equal([6], x)}
IterTest.new([8]).each8 {|x| assert_equal(8, x)}
IterTest.new([[0]]).each0 {|x| assert_equal([0], x)}
IterTest.new([[1]]).each1 {|x| assert_equal(1, x)}
IterTest.new([[2]]).each2 {|x| assert_equal([2], x)}
IterTest.new([[1]]).each1 {|x| assert_equal([1], x)}
IterTest.new([[2]]).each2 {|x| assert_equal([[2]], x)}
IterTest.new([[3]]).each3 {|x| assert_equal(3, x)}
IterTest.new([[4]]).each4 {|x| assert_equal([4], x)}
IterTest.new([[5]]).each5 {|x| assert_equal([5], x)}
IterTest.new([[6]]).each6 {|x| assert_equal([6], x)}
IterTest.new([[7]]).each7 {|x| assert_equal([7], x)}
IterTest.new([[6]]).each6 {|x| assert_equal([[6]], x)}
IterTest.new([[7]]).each7 {|x| assert_equal(7, x)}
IterTest.new([[8]]).each8 {|x| assert_equal([8], x)}
IterTest.new([[0,0]]).each0 {|*x| assert_equal([0,0], x)}
IterTest.new([[8,8]]).each8 {|*x| assert_equal([8,8], x)}
IterTest.new([[0,0]]).each0 {|*x| assert_equal([[0,0]], x)}
IterTest.new([[8,8]]).each8 {|*x| assert_equal([[8,8]], x)}
end
def m(var)