I have to check the some condition (eg. initial state) in several test cases. I cannot use CHECK
in function and I would like to replace the current macro if possible.
#include "catch.hpp"
#define CHECK_INITIAL_STATE() \
CHECK(first_condition); \
CHECK(second_condition);
TEST_CASE("first_test") {
CHECK_INITIAL_STATE();
// do something
// restore state
CHECK_INITIAL_STATE();
}