¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: [TDD] Extra test needed?


Kent Beck
 

Triangulation is the process of finding a remote point by getting the angle
to it from two points with known distance and orientation, and then doing
that sin/cos/tangent stuff. A little picture would go a long way towards
illustrating the concept.

I have no problem with writing a positive and a negative test. However, I
still refactor after the positive test, eliminating duplication between test
case and piggy implementation, before I write the negative test. I can
easily believe this is just a bad habit, and I can less easily believe this
is a technique I and only I among all the programmers of the earth can use
safely.

Kent

Join [email protected] to automatically receive all group messages.