diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-11 08:06:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-11 08:06:19 +0000 |
commit | c372b1236ef04fcc3ac7689f2d0f32e8cc06c6ee (patch) | |
tree | 9c809333a4bbf3de311c651f304f4b12452d3aa3 | |
parent | ba56de8b061b5162e3db64a4f582b628c987d5dc (diff) |
test_iterator.rb: suppress warnings
* test/ruby/test_iterator.rb (test_break): suppress "statement not
reached" warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_iterator.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_iterator.rb b/test/ruby/test_iterator.rb index 52eac0d59e..4a9cfe46f0 100644 --- a/test/ruby/test_iterator.rb +++ b/test/ruby/test_iterator.rb @@ -74,7 +74,7 @@ class TestIterator < Test::Unit::TestCase def test_break done = true loop{ - break + break if true done = false # should not reach here } assert(done) @@ -84,7 +84,7 @@ class TestIterator < Test::Unit::TestCase loop { break if done done = true - next + next if true bad = true # should not reach here } assert(!bad) @@ -94,7 +94,7 @@ class TestIterator < Test::Unit::TestCase loop { break if done done = true - redo + redo if true bad = true # should not reach here } assert(!bad) |