volume_mute
Sequence Testing Guideline - Single Value
publish date: 2026/06/18 03:41:33.978563 UTC
volume_mute
One guideline for testing programs with sequences, arrays, or lists states: test the software with sequences that have only a single value. Why is this guideline important?
Correct Answer
Programmers sometimes embed assumptions that sequences have multiple values, causing failures with single-value inputs
Explanation
Programmers naturally think of sequences as made up of several values and sometimes embed this assumption in their programs. Consequently, a program may not work properly when presented with a single-value sequence. Testing with single-value sequences helps reveal these hidden assumptions.
Reference
Software Engineering, Ian Sommerville, 10th edition
