6.6 Testing
We briefly tested our programs by executing them to see if they produced the output we expected. However, there is far more to testing than just running the program once.
How you test and what you test depend on what the program does, how it will be used, and how essential it is that it be correct.
Almost all programs have errors. They are a fact of life. Programmers create errors during the act of creating a program, and then have to find and fix them. Interestingly, whether a program has errors or not may depend on who’s doing the evaluation. The end user, who best understands how the program will be used, has a different perspective than the program designer, who is coming at the problem from another viewpoint. A program may ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access