[Tutor] More on unit testing - tests for external data...
Kent Johnson
kent37 at tds.net
Thu Dec 10 18:34:12 CET 2009
On Thu, Dec 10, 2009 at 11:20 AM, Wayne Werner <waynejwerner at gmail.com> wrote:
> On Wed, Dec 9, 2009 at 6:15 PM, Alan Gauld <alan.gauld at btinternet.com>
> wrote:
>>
>> Remember, in testing you are not trying to prove it works but rather to
>> demonstrate that it doesn't!
>
> So in that way it's a bit like the the scientific method (or exactly like)?
> You create a hypothesis and design tests to invalidate your hypothesis...
> and if they fail to invalidate you may have a valid hypothesis. Simply
> replace hypothesis with program and you get the testing procedure?
> -Wayne
Nice analogy! And like with a scientific hypothesis, you can never be
sure your program is correct, only that all your attempts to prove it
incorrect has failed.
Kent
More information about the Tutor
mailing list