onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 1 | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN |
| 2 | #include "doctest_proxy.h" |
| 3 | |
| 4 | #include <cstdio> |
| 5 | |
| 6 | my_testcase("custom macros") { |
| 7 | printf("Hello world!\n"); |
| 8 | |
| 9 | my_check(1 == 1); |
| 10 | |
onqtam | cc6a6d6 | 2016-09-19 17:30:15 +0300 | [diff] [blame] | 11 | my_fast_check_eq(1, 1); |
| 12 | |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 13 | my_subcase("bar") { |
| 14 | my_subcase("foo") {} |
| 15 | my_subcase("baz") {} |
| 16 | |
| 17 | my_require(5 > 3); |
| 18 | } |
onqtam | 4a65563 | 2016-05-26 14:20:52 +0300 | [diff] [blame] | 19 | // CHECK(1 == 1); <== ERROR - the default short macros are disabled from the proxy header |
| 20 | } |