rgoulter / cs5237-VoronoiArt

Voronoi Art program written with OpenGL, Qt and OpenCV.
MIT License
3 stars 1 forks source link

Refactor Unit Tests #21

Closed rgoulter closed 6 years ago

rgoulter commented 6 years ago

Catch2 (see #10) allows for more concisely written unit tests, which makes things more readable/apparent than the transliteration of the GTests which I have now.

rgoulter commented 6 years ago

e.g. some the code makes use of cout within the tests. -- If that debugging info is needed in broken cases, surely 'better' to use a custom matcher?

rgoulter commented 6 years ago

As noted in #26:

Since many of the unit tests are geometric, having e.g. SVG diagrams of these may be helpful. https://www.draw.io/ seems a nice, convenient way to make illustrations for this.