|
![](/i/fill.gif) |
On 3/2/2009 8:43 AM, Mueen Nawaz wrote:
> Chambers wrote:
>> add(a,b)
>> return 8
>>
>> It passes the test, so TDD assumes that the function is correct. This,
>
> That's really pathetic.
>
> I've never read a book on it, so I don't know if a true believer really
> would do that.
They wouldn't do it that extremely, because the example was specifically
thought up to provide a counterargument to TDD :)
The point is, that methodology of TDD is to make your code "beat" the
test case, and that's all.
--
...Chambers
www.pacificwebguy.com
Post a reply to this message
|
![](/i/fill.gif) |