POV-Ray : Newsgroups : povray.off-topic : TDD vs PbC : Re: TDD vs PbC Server Time
6 Sep 2024 09:19:17 EDT (-0400)
  Re: TDD vs PbC  
From: Chambers
Date: 2 Mar 2009 23:54:48
Message: <49acb818$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.