piclist 2009\02\02\100507a >
Thread: Agile programming (was Re: [P|C] Banksel)
www.piclist.com/techref/microchip/devprogs.htm?key=programming
face picon face BY : email (remove spam text)(Olin Lathrop)



Vitaliy wrote:
> It seems to me that the test function is almost always simpler than
> the function being tested.

I heartily disagree.  There are definitely cases where testing and trying to
figure out whether the software is doing the best thing with the data is at
least as complicated as the operational software itself.  These cases occur
a lot more than "almost never".

> The classical example is a function that
> uses a complex formula, and returns a value. You don't reproduce the
> formula in the test function. It simply calls the user function, gets
> a value, and compares it to a hand-calculated value.

For small values of "tested".  Many functions are too complicated be
verified by a few simple input/output sets that can be generated by hand.


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.
<00b001c98547$a7928760$0300a8c0@main> 7bit

See also: www.piclist.com/techref/microchip/devprogs.htm?key=programming
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Agile programming (was Re: [P|C] Banksel)

month overview.

new search...