Unlike other testing frameworks, Catch does not provide a large set of assertion macros. It has two main macros: REQUIRE, which produces a fatal error stopping the execution of the test case upon failure and CHECK, which produces a non-fatal error upon failure, continuing the execution of the test case. Several additional macros are defined; in this recipe, we will see how to put them to work.
Asserting with Catch
Getting ready
You should now be familiar with writing test cases and test functions using Catch, a topic covered in the previous recipe.
How to do it...
The following list contains the available...