From: Stefan Schmiedl Date: 2001-12-08T18:50:19+09:00 Subject: [ruby-talk:27912] Re: John Roth dolt ( Re: A challenge to proponents of Unit Testing. ) Robert C. Martin (2001-12-08 15:36): > On 7 Dec 2001 02:04:08 -0800, stephen.hill@motorola.com (Steve Hill) > wrote: > > >What tests would you write for a function that takes 3 numbers (the > >side lengths of a triangle) , and returns whether the triangle is > >equilateral, scalene or isoceles. > > Set sides; // data structure allows no duplicates. > sides.add(a); > sides.add(b); > sides.add(c); > return sides; // 1 = equilateral, 2=isoceles, 3=scalene. > > What am I missing? you're writing C++ on a ruby mailing list? :-) 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!