onqtam | 4984dd7 | 2016-03-20 23:32:15 +0200 | [diff] [blame] | 1 | //#define DOCTEST_DISABLE
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 2 |
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 3 | #include "doctest.h"
|
| 4 |
|
onqtam | b57e0c4 | 2016-03-18 11:37:04 +0200 | [diff] [blame] | 5 | #include <cstdio>
|
| 6 |
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 7 | #include <string>
|
| 8 | namespace doctest
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 9 | {
|
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 10 | namespace detail
|
| 11 | {
|
| 12 | String stringify(const std::string& in); // to silence GCC "-Wmissing-declarations"
|
| 13 | String stringify(const std::string& in) {
|
| 14 | String out;
|
| 15 | out += in.c_str();
|
| 16 | return out;
|
| 17 | }
|
| 18 | } // namespace detail
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 19 | } // namespace doctest
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 20 |
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 21 | testsuite(MAIN);
|
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 22 | testcase(zzz) {
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 23 | check(true == false);
|
| 24 | check(std::string("OMG2") == std::string("OMG"));
|
| 25 |
|
| 26 | printf("main\n");
|
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 27 | subcase("") {
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 28 | printf("1\n");
|
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 29 | subcase("") { printf("1-1\n"); }
|
| 30 | subcase("") { printf("1-2\n"); }
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 31 | }
|
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 32 | subcase("") { printf("2\n"); }
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 33 | }
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 34 | testsuite_end;
|
| 35 |
|
onqtam | 44cde12 | 2016-03-19 14:32:12 +0200 | [diff] [blame] | 36 | #if defined(__GNUC__) && !defined(__clang__)
|
| 37 | #pragma GCC diagnostic ignored "-Weffc++"
|
| 38 | #endif
|
| 39 |
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 40 | struct Empty
|
onqtam | 6b7eb05 | 2016-03-18 12:43:55 +0200 | [diff] [blame] | 41 | {};
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 42 |
|
onqtam | ff2a780 | 2016-03-22 16:03:22 +0200 | [diff] [blame^] | 43 | testcase_fixture(Empty, trololo) { printf("Help?\n"); }
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame] | 44 |
|
| 45 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 46 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 47 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 48 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 49 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 50 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 51 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 52 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 53 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 54 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 55 | // test("") { printf("TEST %d\n", __LINE__); }
|