From: Stefan Schmiedl Date: 2001-12-11T20:35:22+09:00 Subject: [ruby-talk:28202] Re: John Roth dolt ( Re: A challenge to proponents of Unit Testing. ) suresh vv (2001-12-11 19:42): > Robert C. Martin wrote in message news:... > > > The intent was to return a 1 for equilateral, 2 for isoceles, and 3 > > for scalene. Representing the triangle was not part of the job. > > > > Sounds like a cop out. You forgot/ignored the "triangle" part of the problem > and just dealt with 3 numbers, returning the number of unique numbers. well, yes, basically that's what the classification of triangles is about: the number of different sides :-) > > There is a lesson in there somwhere for what happens when you > get away from the "real world". yup. the lesson is that communication is necessary beyond written specs. one part of us understood the requirements such that it was *given* that the numbers are sides from a triangle, hence no testing was required. a second part started with three numbers coming out of nowhere, while a thirs fraction started with three arguments that could possibly be any kind of object. the problem is definitely not testing, but communication. s. -- Stefan Schmiedl EDV-Beratung, Programmierung, Schulung Loreleystr. 5, 94315 Straubing, Germany Tel. (0 94 21) 74 01 06 Public Key: http://xss.de/stefan.public shhhh ... I can't hear my code!