You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctest/examples/all_features/alternative_macros.cpp

16 lines
378 B
C++

#include "doctest_proxy.h"
my_testcase("custom macros") {
my_check(1 == 1);
my_check_eq(1, 1);
my_subcase("bar") {
my_subcase("foo") { /* code code code */ }
my_subcase("baz") { /* code code code */ }
my_require(5 > 3);
}
// CHECK(1 == 1); <== ERROR - the default short macros are disabled from the proxy header
}