olm/lib/doctest/examples/all_features/alternative_macros.cpp
Hubert Chathi 8475061136 switch to doctest for unit testing
thanks to Nico Werner, who did most of the porting work
2021-12-22 13:45:33 -05:00

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