blob: 53772c5683922a0f2dafadd2b2dbe3efd322e229 [file] [log] [blame]
onqtamf921d3f2016-03-18 11:34:18 +02001//#define DOCTEST_CONFIG_DISABLE
2
hardlyb1e7e142014-08-06 00:43:51 +03003#include "doctest.h"
4
onqtamf921d3f2016-03-18 11:34:18 +02005#include <string>
6namespace doctest
hardlyb1e7e142014-08-06 00:43:51 +03007{
onqtamf921d3f2016-03-18 11:34:18 +02008 namespace detail
hardlyb1e7e142014-08-06 00:43:51 +03009 {
onqtamf921d3f2016-03-18 11:34:18 +020010 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
hardlyb1e7e142014-08-06 00:43:51 +030018
onqtamf921d3f2016-03-18 11:34:18 +020019testsuite(MAIN);
20test(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"); }
hardlyb1e7e142014-08-06 00:43:51 +030031}
hardlyb1e7e142014-08-06 00:43:51 +030032testsuite_end;
33
onqtamf921d3f2016-03-18 11:34:18 +020034struct Empty
35{
36 virtual ~Empty() {}
37};
hardlyb1e7e142014-08-06 00:43:51 +030038
onqtamf921d3f2016-03-18 11:34:18 +020039doctest_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__); }