Object Oriented Software Engineering   View all facts   Glossary   Help
subject > problem > defect > defect in an ordinary algorithm > performing a calculation in the wrong part of a control construct
Next defect in an ordinary algorithmuse of an inappropriate standard algorithm    Updefect in an ordinary algorithm    Previous defect in an ordinary algorithmoperator precedence error   

performing a calculation in the wrong part of a control construct comparison table
Subject have testing strategy cause by catch using has definition is a subtopic of is a kind of
defect in an ordinary algorithm    10.4 - Defects in Numerical Algorithmsdefect
performing a calculation in the wrong part of a control construct
  • design tests that execute each loop zero times, exactly once, and more than once
  • ensure that anything 'bad' or 'unusual' that could happen while looping is made to occur on the first iteration and the last iteration
inappropriately excluding the action from, or including the action in, a loop or if-then-else constructblack-box testing, so glass-box testing or inspections may be more effectiveA common defect in which the program performs an action when it should not, or does not perform an action when it should10.3 - Defects in Ordinary Algorithmsdefect in an ordinary algorithm

Next defect in an ordinary algorithmuse of an inappropriate standard algorithm    Updefect in an ordinary algorithm    Previous defect in an ordinary algorithmoperator precedence error