1.4 Test the code using a recognised test strategy and given test cases
“Program testing can be used to show the presence of bugs, but never to show their absence!” (Edsger Dijkstra)
“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” (Anon)
“There are two ways to write error-free programs. Only the third one works.” (Anon)
One of the first things you will discover in writing programs is that a program rarely runs correctly first time. In fact, errors are so common in programming that they have their own special name: Bugs. The process of correcting, or getting rid of bugs is called Debugging.
It is sometimes claimed that the word bug became associated with problems with computers because real bugs such as moths were sometimes found dead in computer relays.