onqtam | 4984dd7 | 2016-03-20 23:32:15 +0200 | [diff] [blame] | 1 | #define DOCTEST_DISABLE |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 2 | |
onqtam | 4984dd7 | 2016-03-20 23:32:15 +0200 | [diff] [blame] | 3 | #define DOCTEST_IMPLEMENT_WITH_MAIN |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 4 | #include "doctest.h" |
5 | |||||
6 | #include <cstdio> | ||||
7 | |||||
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 8 | testcase("name1") { |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 9 | printf("Anyone there?\n"); |
10 | } | ||||
11 | |||||
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 12 | testsuite(the testsuite!); |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 13 | |
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 14 | testcase(ops) { |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 15 | printf("Anyone there?\n"); |
16 | } | ||||
17 | |||||
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 18 | testsuite_end; |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 19 | |
onqtam | 44cde12 | 2016-03-19 14:32:12 +0200 | [diff] [blame] | 20 | #if defined(__GNUC__) && !defined(__clang__) |
21 | #pragma GCC diagnostic ignored "-Weffc++" | ||||
22 | #endif | ||||
23 | |||||
onqtam | 6b7eb05 | 2016-03-18 12:43:55 +0200 | [diff] [blame] | 24 | struct Empty |
25 | {}; | ||||
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 26 | |
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 27 | testcase_fixture(Empty, "name") { |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 28 | printf("Help?\n"); |
29 | } | ||||
30 | |||||
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 31 | testcase_fixture(Empty, ops) { |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 32 | printf("Help?\n"); |
33 | } |