From c4e5ec23d3cea5fb991a4ff3b1da733168731864 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 3 Oct 2006 15:59:45 +0000 Subject: * parse.y (block_param): restrict block parameters to be local variables only. * test/ruby/test_iterator.rb (TestIterator::test_nested_iterator): update test suite to conform the last change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_iterator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_iterator.rb b/test/ruby/test_iterator.rb index 8a2b81693b..0db54302f5 100644 --- a/test/ruby/test_iterator.rb +++ b/test/ruby/test_iterator.rb @@ -52,7 +52,7 @@ class TestIterator < Test::Unit::TestCase def test_nested_iterator i = 0 tt{|i| break if i == 5} - assert_equal(5, i) + assert_equal(0, i) assert_raises(ArgumentError) do tt3{} -- cgit v1.2.1