Chapter 12. Unit Testing Algorithms
"What a curious feeling!" said Alice."I must be shutting up like a telescope!"
And so it was indeed: she was now only 10 inches high, and her face brightened at the thought that she was now the right size for going through the little door into that lovely garden.
One of the main messages in this book has been "test smarter, not harder"—that is, write fewer tests that each cover more code. If done using the techniques we've described, you can actually improve your effective test coverage while having fewer test cases (but comparatively more test scenarios, or "inputs" and their "expected outputs," for each test ...