3 ms·
I guess I'm not a true Scotsman. I'll give an example . Imagine that you're writing an append method for a list that's implemented as insert(x, size). TDD re
by richcollins 16y ago
I guess I'm not a true Scotsman.
I'll give an example . Imagine that you're writing an append method for a list that's implemented as insert(x, size). TDD requires that you test the interface, not the implementation, so you'd end up with lots of test cases. How would the test code compare with the implementation?