Assertions

CMakeTest ships with a wide variety of assertion commands to assist test makers. These assertions function similarly to assertions in other test frameworks, where the test calls an assertion function that checks its inputs against a condition. If the assertion fails, the test is halted and is labeled as failing.

These assertions are only guaranteed to function inside of CMakeTest tests and sections. For more general purpose assertions, our sister project CMakePPLang has assertions, which can be found here.

The following assertions are available: