Automatic testing

6. Automatic testing#

Usually you implement some algorithm, test them - and they work. But often you modify your code, and it happes that you break code that worked before. It often takes long to find these errors.

For that reason it is a good idea to add a test-suite of well chosen tests that verifies your algorithm.

We are going to use Catch2 for setting up such tests.