Answers Quote by Brian Kernighan
“... it is a fundamental principle of testing that you must know in advance the answer each test case is supposed to produce. If you don't, you are not testing; you are experimenting.”
About This Quote
Source Book: The C Programming Language, 1978
Testing requires a known expected result; without it, you are merely experimenting, not verifying.
In simple terms: You must know the expected answer before testing.
Define expected outcomes before testing.
Themes
Mood
Type
When to use this quote
- unit testing
- integration testing
- test-driven development
Key Concepts
Questions to Reflect On
- How do you determine expected outcomes for new features?
- What risks arise from testing without clear expectations?
If the expected result is unknown, testing cannot validate correctness.