blob: 581a1d9174d2e7a664a07a5b4f0582864136eaa8 [file] [log] [blame]
onqtam4984dd72016-03-20 23:32:15 +02001//#define DOCTEST_DISABLE
onqtamf921d3f2016-03-18 11:34:18 +02002
hardlyb1e7e142014-08-06 00:43:51 +03003#include "doctest.h"
4
onqtamb57e0c42016-03-18 11:37:04 +02005#include <cstdio>
6
onqtamf921d3f2016-03-18 11:34:18 +02007#include <string>
8namespace doctest
hardlyb1e7e142014-08-06 00:43:51 +03009{
onqtamff2a7802016-03-22 16:03:22 +020010namespace 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
onqtamf921d3f2016-03-18 11:34:18 +020019} // namespace doctest
hardlyb1e7e142014-08-06 00:43:51 +030020
onqtamf921d3f2016-03-18 11:34:18 +020021testsuite(MAIN);
onqtamff2a7802016-03-22 16:03:22 +020022testcase(zzz) {
onqtamf921d3f2016-03-18 11:34:18 +020023 check(true == false);
24 check(std::string("OMG2") == std::string("OMG"));
25
26 printf("main\n");
onqtamff2a7802016-03-22 16:03:22 +020027 subcase("") {
onqtamf921d3f2016-03-18 11:34:18 +020028 printf("1\n");
onqtamff2a7802016-03-22 16:03:22 +020029 subcase("") { printf("1-1\n"); }
30 subcase("") { printf("1-2\n"); }
onqtamf921d3f2016-03-18 11:34:18 +020031 }
onqtamff2a7802016-03-22 16:03:22 +020032 subcase("") { printf("2\n"); }
hardlyb1e7e142014-08-06 00:43:51 +030033}
hardlyb1e7e142014-08-06 00:43:51 +030034testsuite_end;
35
onqtam44cde122016-03-19 14:32:12 +020036#if defined(__GNUC__) && !defined(__clang__)
37#pragma GCC diagnostic ignored "-Weffc++"
38#endif
39
onqtamf921d3f2016-03-18 11:34:18 +020040struct Empty
onqtam6b7eb052016-03-18 12:43:55 +020041{};
hardlyb1e7e142014-08-06 00:43:51 +030042
onqtamff2a7802016-03-22 16:03:22 +020043testcase_fixture(Empty, trololo) { printf("Help?\n"); }
onqtamf921d3f2016-03-18 11:34:18 +020044
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__); }