onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame^] | 1 | //#define DOCTEST_CONFIG_DISABLE
|
| 2 |
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 3 | #include "doctest.h"
|
| 4 |
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame^] | 5 | #include <string>
|
| 6 | namespace doctest
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 7 | {
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame^] | 8 | namespace detail
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 9 | {
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame^] | 10 | String stringify(const std::string& in); // to silence GCC "-Wmissing-declarations"
|
| 11 | String stringify(const std::string& in) {
|
| 12 | String out;
|
| 13 | out += in.c_str();
|
| 14 | return out;
|
| 15 | }
|
| 16 | } // namespace detail
|
| 17 | } // namespace doctest
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 18 |
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame^] | 19 | testsuite(MAIN);
|
| 20 | test(zzz) {
|
| 21 | check(true == false);
|
| 22 | check(std::string("OMG2") == std::string("OMG"));
|
| 23 |
|
| 24 | printf("main\n");
|
| 25 | subtest("") {
|
| 26 | printf("1\n");
|
| 27 | subtest("") { printf("1-1\n"); }
|
| 28 | subtest("") { printf("1-2\n"); }
|
| 29 | }
|
| 30 | subtest("") { printf("2\n"); }
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 31 | }
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 32 | testsuite_end;
|
| 33 |
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame^] | 34 | struct Empty
|
| 35 | {
|
| 36 | virtual ~Empty() {}
|
| 37 | };
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 38 |
|
onqtam | f921d3f | 2016-03-18 11:34:18 +0200 | [diff] [blame^] | 39 | doctest_fixture(Empty, trololo) { printf("Help?\n"); }
|
| 40 |
|
| 41 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 42 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 43 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 44 | // test("") { printf("TEST %d\n", __LINE__); }
|
| 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__); }
|