Testing reveals a problem

If a program should move a character three steps but it moves four, the programmer can repeat the test and find which instruction caused the extra step. 1 2

Debugging is a process

Programmers trace the steps, change a possible mistake, and run the program again. They repeat the test to check whether the fix worked. 1 2

Try different cases when testing

A programmer should test more than one example. If a program adds two numbers, try small numbers, larger numbers, and zero. Different tests can reveal mistakes that were hidden in the first example. After fixing the code, the programmer tests it again to check for new problems. 1 2