3 ms·
It looks like a great base for a refactoring exercise.
by michaelfeathers 7y ago
It looks like a great base for a refactoring exercise.
- abecedarius 7y agoI considered doing that once. Trouble is, how do you test it? It comes with one tiny example in the C subset, plus one substantial one (itself). Its behavior is generally undefined when the input departs from the subset. It seemed like more work to address these issues than the fun you could have in messing with the code. So I sketched my refactorings without bothering to check them or to publish it.
- michaelfeathers 7y agoThis is a way you can approach it. https://michaelfeathers.silvrback.com/characterization-testing https://michaelfeathers.silvrback.com/characterization-testi...