Writing “enough” tests for a Ruby function
As developers, we often wonder how many tests we should write for our code. If we write too many test cases, we will end up with 1,000 lines of code–hard to read and hard to maintain. If we only write a couple of test cases, we will feel uncertain that…