Unit testing algorithms

In the last weeks, I've been improving my computer science knowledge by solving programming problems. Since these problems have multiple solutions, I find myself writing duplicated unit tests. And refactoring these tests is cumbersome (if find&replace doesn't work). To make the point clear, I'm going to pick a problem with many possible implementations: sorting an … Continue reading Unit testing algorithms