mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
ba56de8b06
commit
c372b1236e
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue