From: "Robert C. Martin" Date: 2001-12-11T13:22:30+09:00 Subject: [ruby-talk:28176] Re: John Roth dolt ( Re: A challenge to proponents of Unit Testing. ) On 10 Dec 2001 10:27:59 -0800, tadamsmar@aol.com (Tom Adams) wrote: >"Kent Beck" wrote in message news:<9v1ss3$adi$1@suaar1aa.prod.compuserve.com>... > >> (Ken's proposed 5 test case solution to Myers Triangle problem was here) > >1. What about oddities in the source code? Like: > >if (any side ==4) { > return 1; >} If you accept this as a legitimate testing target, then you must exhaustively test every possible triplet, since there might be some if statement that catches one particular triplet and returns the wrong result. I think such testing is unreasonable in most cases. > >2. There is also the issue of very large integer values. In the language that Kent was using (smalltalk) integers have no maximum size. Robert C. Martin | "Uncle Bob" | Software Consultants Object Mentor Inc. | rmartin@objectmentor.com | We'll help you get PO Box 5757 | Tel: (800) 338-6716 | your projects done. 565 Lakeview Pkwy | Fax: (847) 573-1658 | www.objectmentor.com Suite 135 | | www.XProgramming.com Vernon Hills, IL, | Training and Mentoring | www.junit.org 60061 | OO, XP, Java, C++, Python| "One of the great commandments of science is: 'Mistrust arguments from authority.'" -- Carl Sagan