summaryrefslogtreecommitdiffstats
path: root/sample/test.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-05 22:32:04 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-05 22:32:04 +0000
commite53e529e42a3f1593ae85676aa69ae2c43cf2260 (patch)
tree90b1f9bfc173af0ea61605e69ad049a2f4212f0b /sample/test.rb
parentfeab839cb3f04b5fe577d5ba76a06bb7a73aa4c4 (diff)
downloadruby-e53e529e42a3f1593ae85676aa69ae2c43cf2260.tar.gz
ruby-e53e529e42a3f1593ae85676aa69ae2c43cf2260.tar.xz
ruby-e53e529e42a3f1593ae85676aa69ae2c43cf2260.zip
* eval.c (rb_yield_0): small refactoring.
* parse.y (bparam_item): fixed bugs in handling parenthesized LHS. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/sample/test.rb b/sample/test.rb
index a32dbcbec..65b268d9c 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -977,11 +977,11 @@ IterTest.new([[3]]).each3 {|x| test_ok(x == 3)}
IterTest.new([[4]]).each4 {|x| test_ok(x == [4])}
IterTest.new([[5]]).each5 {|x| test_ok(x == [5])}
IterTest.new([[6]]).each6 {|x| test_ok(x == [6])}
-IterTest.new([[7]]).each7 {|x| test_ok(x == [7])}
-IterTest.new([[8]]).each8 {|x| test_ok(x == [8])}
+IterTest.new([[7]]).each7 {|x| p x; test_ok(x == [7])}
+IterTest.new([[8]]).each8 {|x| p x; test_ok(x == [8])}
IterTest.new([[0,0]]).each0 {|*x| test_ok(x == [0,0])}
-IterTest.new([[8,8]]).each8 {|*x| test_ok(x == [8,8])}
+IterTest.new([[8,8]]).each8 {|*x| p x; test_ok(x == [8,8])}
def m0(v)
v