From: tadamsmar@... (Tom Adams) Date: 2001-12-11T03:40:04+09:00 Subject: [ruby-talk:28123] Re: John Roth dolt ( Re: A challenge to proponents of Unit Testing. ) "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; } This would cause it to fail for the test case 1,2,4 and your tests would miss that. You would need white-box testing to catch this, or you would need more, perhaps many more, black-box tests to cover all the possible internals of the function's code. 2. There is also the issue of very large integer values. At least, you can call the function with literal integers where it will fail. Actually, it is not possible to code the function to handle integers of unbounded size without using some special integer representations. Anyway, a function would pass your tests with undefined behaviour for very large integers. And, code using the function could work on one compiler or machine and fail on another, depending on the language, because of issues related to integer size.