
278 ◾ Computational Thinking for the Modern Problem Solver
testing on virtually any algorithm that includes loops. For example, con-
sider the telephone dialing activity diagram of Figure9.9 (also reprised
from Chapter 6).
One path through this activity diagram is to dial just one digit before
pressing the green call button. A second is to press two digits before the
call button, and so forth:
Test case 1—1 to 3, and 5
Test case 2—1 to 3, 4, and 5
Test case 3—1 to 3, 4, 4, and 5
Test case 4—1 to 3, 4, 4, 4, and 5
Test case 5—1 to 3, 4, 4, 4, 4, and 5
Test case 6—1 to 3, 4, 4, 4, 4, 4, and 5
(and so forth)
e problem is that for any particular pat ...