How TDD Works Its Magic(6): Side-Stepping Mismatches
Posted in Situated Geekery on Jan 12th, 2011
(This series starts here.) Take a look at this sweet little snippet: public void longFunction(int index) { int currentMaxIndex; // … some tricky preparation stuff before we // can even de-ref index // among other things, setting currentMaxIndex to a // positive integer. if(index < 0 && index > currentMaxIndex) { // … log the […]