Unit Tests Don’t Prevent Bugs

… but you should still be writing them. Given the following set of test cases:

We can quickly verify whether or not our  isPrime() function is working for the numbers one through nine.  But we can’t guarantee that our  isPrime() function has no bugs.  Do we know whether or not it returns the right value for ten or […]