hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 1 | #define DOCTEST_CONFIG_DISABLE
|
| 2 |
|
| 3 | #define DOCTEST_CONFIG_MAIN
|
| 4 | #define DOCTEST_CONFIG_IMPLEMENT
|
| 5 | #include "doctest.h"
|
| 6 |
|
| 7 | #include <cstdio>
|
| 8 |
|
| 9 | doctest_test("name1") {
|
| 10 | printf("Anyone there?\n");
|
| 11 | }
|
| 12 |
|
| 13 | doctest_testsuite(the testsuite!);
|
| 14 |
|
| 15 | doctest_test(ops) {
|
| 16 | printf("Anyone there?\n");
|
| 17 | }
|
| 18 |
|
| 19 | doctest_testsuite_end;
|
| 20 |
|
onqtam | 6b7eb05 | 2016-03-18 12:43:55 +0200 | [diff] [blame^] | 21 | struct Empty
|
| 22 | {};
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 23 |
|
| 24 | doctest_fixture(Empty, "name") {
|
| 25 | printf("Help?\n");
|
| 26 | }
|
| 27 |
|
| 28 | doctest_fixture(Empty, ops) {
|
| 29 | printf("Help?\n");
|
| 30 | }
|