olm/lib/doctest/examples/all_features/alternative_macros.cpp

16 lines
378 B
C++
Raw Permalink Normal View History

#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
}