---
title: "Meaning & Key Takeaway of: ... it is a fundamental principle of…"
description: "\"... 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 ..."
image: "https://sms4smile.com/quotes/i/e97/brian-kernighan-27197_answers_it-is-a-fundamental-principle-of-testing_1626377.png"
---

#  ... it is a fundamental principle of testing that you must…

![“... 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.” quote by Brian Kernighan](https://sms4smile.com/quotes/i/e97/brian-kernighan-27197_answers_it-is-a-fundamental-principle-of-testing_1626377.png)   [Download](https://sms4smile.com/quotes/i/e97/brian-kernighan-27197_answers_it-is-a-fundamental-principle-of-testing_1626377.png) [Open image](https://sms4smile.com/quotes/i/e97/brian-kernighan-27197_answers_it-is-a-fundamental-principle-of-testing_1626377.png)

> “... 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.”

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

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.

Key Takeaway

Define expected outcomes before testing.

Themes

software testing verification methodology

Mood

analytical critical

Type

instructional technical

When to use this quote

- unit testing
- integration testing
- test-driven development

Key Concepts

expected result experimental design

Questions to Reflect On

- How do you determine expected outcomes for new features?
- What risks arise from testing without clear expectations?

A Different Perspective

If the expected result is unknown, testing cannot validate correctness.

★ ★ ★ ★ ★   No ratings yet

[Fundamental principles](https://sms4smile.com/quotes/about/fundamental-principles/) [Principles](https://sms4smile.com/quotes/about/principles/) [Tests](https://sms4smile.com/quotes/about/tests/)

## Related quotes

> [A good test case is a test case that has a high probability of detecting an undiscovered error, not a test case that show…](https://sms4smile.com/quotes/glenford-myers/a-good-test-case-is-a-test-case-that-has-a-high-probability-of/)

Glenford Myers

> [The antitrust litigation currently in the federal courts in the U.S. against Monsanto will be the test case in the life sciences, just as…](https://sms4smile.com/quotes/jeremy-rifkin/the-antitrust-litigation-currently-in-the-federal-courts-in-the-u-s/)

[Jeremy Rifkin](https://sms4smile.com/quotes/author/jeremy-rifkin/)

> [Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you…](https://sms4smile.com/quotes/brian-kernighan/debugging-is-twice-as-hard-as-writing-the-code-in-the-first-place/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Let each of us accept the truth of the following statement and try to make it our most fundamental principle: Christ's teaching will never…](https://sms4smile.com/quotes/vincent-de-paul/let-each-of-us-accept-the-truth-of-the-following-statement-and-try-to/)

[Vincent de Paul](https://sms4smile.com/quotes/author/vincent-de-paul/)

> [What is the structure of government that will best guard against the precipitate counsels and factious combinations for unjust purposes, without a sacrifice of…](https://sms4smile.com/quotes/james-madison/what-is-the-structure-of-government-that-will-best-guard-against-the/)

[James Madison](https://sms4smile.com/quotes/author/james-madison/)

> [Education belongs pre-eminently to the church ... neutral or lay schools from which religion is excluded are contrary to the fundamental principles of education.](https://sms4smile.com/quotes/pope-pius-xi/education-belongs-pre-eminently-to-the-church-neutral-or-lay-schools/)

[Pope Pius XI](https://sms4smile.com/quotes/author/pope-pius-xi/)

> [ It is one thing to be subordinate to the laws, and another \[for the Executive\] to be dependent on the legislative body. The first… ](https://sms4smile.com/quotes/alexander-hamilton/it-is-one-thing-to-be-subordinate-to-the-laws-and-another-for-the/)

[Alexander Hamilton](https://sms4smile.com/quotes/author/alexander-hamilton/)

> [One of the grand fundamental principles of Mormonism is to receive truth, let it come from whence it may.](https://sms4smile.com/quotes/joseph-smith-jr/one-of-the-grand-fundamental-principles-of-mormonism-is-to-receive/)

[Joseph Smith, Jr](https://sms4smile.com/quotes/author/joseph-smith-jr/)

> [The old fundamental principles must continue to apply, even in our changing society: Democracy knows neither master nor slave. Equal education opportunities for all,…](https://sms4smile.com/quotes/martin-schulz/the-old-fundamental-principles-must-continue-to-apply-even-in-our/)

[Martin Schulz](https://sms4smile.com/quotes/author/martin-schulz/)

> [Geometry, like arithmetic, requires for its logical development only a small number of simple, fundamental principles. These fundamental principles are called the axioms of…](https://sms4smile.com/quotes/david-hilbert/geometry-like-arithmetic-requires-for-its-logical-development-only-a/)

[David Hilbert](https://sms4smile.com/quotes/author/david-hilbert/)

> [There is a fundamental principle. People have the right to defend their country from foreign occupiers, and people have the right to defend their…](https://sms4smile.com/quotes/norman-finkelstein/there-is-a-fundamental-principle-people-have-the-right-to-defend/)

[Norman Finkelstein](https://sms4smile.com/quotes/author/norman-finkelstein/)

> [In Oceania at the present day, Science, in the old sense, has almost ceased to exist. In Newspeak there is no word for 'Science.'…](https://sms4smile.com/quotes/george-orwell/in-oceania-at-the-present-day-science-in-the-old-sense-has-almost/)

[George Orwell](https://sms4smile.com/quotes/author/george-orwell/)

> [Kantian ethical theory distinguishes three levels: First, that of a fundamental principle (the categorical imperative, formulated in three main ways in Kant's Groundwork); second,…](https://sms4smile.com/quotes/allen-w-wood/kantian-ethical-theory-distinguishes-three-levels-first-that-of-a/)

[Allen W. Wood](https://sms4smile.com/quotes/author/allen-w-wood/)

> [The Fundamental Principle that governs - or ought to govern -human affairs if we wish to avoid misunderstandings, conflicts, or pointless utopias, is negotiation.](https://sms4smile.com/quotes/umberto-eco/the-fundamental-principle-that-governs-or-ought-to-govern-human/)

[Umberto Eco](https://sms4smile.com/quotes/author/umberto-eco/)

> [ The fundamental principle \[of settlement work\] remains: that people shall take up their residence in industrial communities, giving what they may have of public… ](https://sms4smile.com/quotes/lillian-wald/the-fundamental-principle-of-settlement-work-remains-that-people/)

[Lillian Wald](https://sms4smile.com/quotes/author/lillian-wald/)

## More by Brian Kernighan

> [Get the weirdnesses into the data where you can manipulate them easily, and the regularity into the code because regular code is a lot…](https://sms4smile.com/quotes/brian-kernighan/get-the-weirdnesses-into-the-data-where-you-can-manipulate-them/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Trying to outsmart a compiler defeats much of the purpose of using one.](https://sms4smile.com/quotes/brian-kernighan/trying-to-outsmart-a-compiler-defeats-much-of-the-purpose-of-using-one/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [An effective way to test code is to exercise it at its natural boundaries](https://sms4smile.com/quotes/brian-kernighan/an-effective-way-to-test-code-is-to-exercise-it-at-its-natural/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [As we said in the preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience,…](https://sms4smile.com/quotes/brian-kernighan/as-we-said-in-the-preface-to-the-first-edition-c-wears-well-as-one-s/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Trivia rarely affect efficiency. Are all the machinations worth it, when their primary effect is to make the code less readable?](https://sms4smile.com/quotes/brian-kernighan/trivia-rarely-affect-efficiency-are-all-the-machinations-worth-it/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [If you had done something twice, you are likely to do it again.](https://sms4smile.com/quotes/brian-kernighan/if-you-had-done-something-twice-you-are-likely-to-do-it-again/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [C is a razor-sharp tool, with which one can create an elegant and efficient program or a bloody mess.](https://sms4smile.com/quotes/brian-kernighan/c-is-a-razor-sharp-tool-with-which-one-can-create-an-elegant-and/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Believe the terrain, not the map](https://sms4smile.com/quotes/brian-kernighan/believe-the-terrain-not-the-map/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Mechanical rules are never a substitute for clarity of thought.](https://sms4smile.com/quotes/brian-kernighan/mechanical-rules-are-never-a-substitute-for-clarity-of-thought/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Don't document bad code - rewrite it.](https://sms4smile.com/quotes/brian-kernighan/don-t-document-bad-code-rewrite-it/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you…](https://sms4smile.com/quotes/brian-kernighan/debugging-is-twice-as-hard-as-writing-the-code-in-the-first-place/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [“Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can…](https://sms4smile.com/quotes/brian-kernighan/everyone-knows-that-debugging-is-twice-as-hard-as-writing-a-program/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [ Another effective \[debugging\] technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes… ](https://sms4smile.com/quotes/brian-kernighan/another-effective-debugging-technique-is-to-explain-your-code-to/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Do what you think is interesting, do something that you think is fun and worthwhile, because otherwise you won't do it well anyway.](https://sms4smile.com/quotes/brian-kernighan/do-what-you-think-is-interesting-do-something-that-you-think-is-fun/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

> [Controlling complexity is the essence of computer programming.](https://sms4smile.com/quotes/brian-kernighan/controlling-complexity-is-the-essence-of-computer-programming/)

[Brian Kernighan](https://sms4smile.com/quotes/author/brian-kernighan/)

[Explore all 21 Brian Kernighan quotes ](https://sms4smile.com/quotes/author/brian-kernighan/)

## More Answers quotes

> [The one thing that I keep learning over and over again is that I don't know nothing. I mean, that's my life lesson.](https://sms4smile.com/quotes/dwayne-johnson/the-one-thing-that-i-keep-learning-over-and-over-again-is-that-i-don/)

[Dwayne Johnson](https://sms4smile.com/quotes/author/dwayne-johnson/)

> [Sometimes a question can hurt more than an answer.](https://sms4smile.com/quotes/sarah-dessen/sometimes-a-question-can-hurt-more-than-an-answer/)

[Sarah Dessen](https://sms4smile.com/quotes/author/sarah-dessen/)

> [You feed yourself. Make sure you have all the information, whether it's aesthetic, scientific, mathematical, I don't care what it is. Then you walk…](https://sms4smile.com/quotes/ray-bradbury/you-feed-yourself-make-sure-you-have-all-the-information-whether-it-s/)

[Ray Bradbury](https://sms4smile.com/quotes/author/ray-bradbury/)

> [I have long felt that the way to keep children out of trouble is to keep them interested in things. Lecturing to children is…](https://sms4smile.com/quotes/walt-disney/i-have-long-felt-that-the-way-to-keep-children-out-of-trouble-is-to/)

[Walt Disney](https://sms4smile.com/quotes/author/walt-disney/)

> [Let me tell you that atheism has never painted a masterpiece. Atheism has never dispelled fear. Atheism has never healed a disease; faith in…](https://sms4smile.com/quotes/john-hagee/let-me-tell-you-that-atheism-has-never-painted-a-masterpiece-atheism/)

[John Hagee](https://sms4smile.com/quotes/author/john-hagee/)

> [“As long as you keep searching,the answers will come.”](https://sms4smile.com/quotes/mitch-kynock/as-long-as-you-keep-searching-the-answers-will-come/)

[Mitch Kynock](https://sms4smile.com/quotes/author/mitch-kynock/)

> [The answer to deep anxiety is the deep adoration of God.](https://sms4smile.com/quotes/ann-voskamp/the-answer-to-deep-anxiety-is-the-deep-adoration-of-god/)

[Ann Voskamp](https://sms4smile.com/quotes/author/ann-voskamp/)

> [A dialogue is very important. It is a form of communication in which question and answer continue till a question is left without an…](https://sms4smile.com/quotes/jiddu-krishnamurti/a-dialogue-is-very-important-it-is-a-form-of-communication-in-which/)

[Jiddu Krishnamurti](https://sms4smile.com/quotes/author/jiddu-krishnamurti/)

> [There is a comfort in rituals, and rituals provide a framework for stability when you are trying to find answers.](https://sms4smile.com/quotes/deborah-norville/there-is-a-comfort-in-rituals-and-rituals-provide-a-framework-for/)

[Deborah Norville](https://sms4smile.com/quotes/author/deborah-norville/)

> [A religious person answers to God, not to the elected or non-elected official.](https://sms4smile.com/quotes/elie-wiesel/a-religious-person-answers-to-god-not-to-the-elected-or-non-elected/)

[Elie Wiesel](https://sms4smile.com/quotes/author/elie-wiesel/)

> [Let us remember that every worldview-not just Christianity's-must give an explanation or an answer for evil and suffering...this is not just a problem distinctive…](https://sms4smile.com/quotes/ravi-zacharias/let-us-remember-that-every-worldview-not-just-christianity-s-must/)

[Ravi Zacharias](https://sms4smile.com/quotes/author/ravi-zacharias/)

> [Instead of asking a girl how she feels, try looking through her recently listened to songs. The lyrics are the answer to all your…](https://sms4smile.com/quotes/anonymous/instead-of-asking-a-girl-how-she-feels-try-looking-through-her/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [For someone to ask 'Who did you play for' and to be able to answer a single name 'Liverpool' that would be brilliant...I don't…](https://sms4smile.com/quotes/jamie-carragher/for-someone-to-ask-who-did-you-play-for-and-to-be-able-to-answer-a/)

[Jamie Carragher](https://sms4smile.com/quotes/author/jamie-carragher/)

> [When the first Superman movie came out I was frequently asked "What is a hero?" ...My answer was that a hero is someone who…](https://sms4smile.com/quotes/christopher-reeve/when-the-first-superman-movie-came-out-i-was-frequently-asked-what-is/)

[Christopher Reeve](https://sms4smile.com/quotes/author/christopher-reeve/)

> [Enjoying life isn't about finding the answers, but living the questions.](https://sms4smile.com/quotes/sue-margolis/enjoying-life-isn-t-about-finding-the-answers-but-living-the-questions/)

[Sue Margolis](https://sms4smile.com/quotes/author/sue-margolis/)

Browse all 7,843 Answers quotes

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "... 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.",
            "creator": {
                "@type": "Person",
                "name": "Brian Kernighan"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/brian-kernighan/it-is-a-fundamental-principle-of-testing-that-you-must-know-in/",
            "about": {
                "@type": "Thing",
                "name": "Answers"
            },
            "@id": "https://sms4smile.com/quotes/brian-kernighan/it-is-a-fundamental-principle-of-testing-that-you-must-know-in/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/e97/brian-kernighan-27197_answers_it-is-a-fundamental-principle-of-testing_1626377.png",
                "contentUrl": "https://sms4smile.com/quotes/i/e97/brian-kernighan-27197_answers_it-is-a-fundamental-principle-of-testing_1626377.png",
                "url": "https://sms4smile.com/quotes/i/e97/brian-kernighan-27197_answers_it-is-a-fundamental-principle-of-testing_1626377.png",
                "width": 1080,
                "height": 1080,
                "caption": "“... it is a fundamental principle of testing that you must know in advance the answer each test case is…” — Brian Kernighan",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Brian Kernighan",
                    "item": "https://sms4smile.com/quotes/author/brian-kernighan/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "... it is a fundamental principle...",
                    "item": "https://sms4smile.com/quotes/brian-kernighan/it-is-a-fundamental-principle-of-testing-that-you-must-know-in/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/brian-kernighan/it-is-a-fundamental-principle-of-testing-that-you-must-know-in/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
