blob: aae5a47ec4ed6aef14d54ec0f49e78a5404cb3eb [file] [log] [blame]
onqtam862a3bb2016-04-27 18:19:00 +03001//#define DOCTEST_CONFIG_DISABLE
hardlyb1e7e142014-08-06 00:43:51 +03002
onqtamcae73122016-04-29 14:57:23 +03003#include "doctest.h"
onqtam862a3bb2016-04-27 18:19:00 +03004#define DOCTEST_CONFIG_IMPLEMENT
hardlyb1e7e142014-08-06 00:43:51 +03005#include "doctest.h"
6
7#include <cstdio>
onqtamcae73122016-04-29 14:57:23 +03008#include <cstdlib>
hardlyb1e7e142014-08-06 00:43:51 +03009
10int main(int argc, char** argv) {
11 // initialize
12 doctest::Context context(argc, argv);
hardlyb1e7e142014-08-06 00:43:51 +030013
14 // overrides
15 context.setOption("dt-case-sensitive", true);
onqtam862a3bb2016-04-27 18:19:00 +030016 context.setOption("no-breaks", true);
onqtam0cea9bc2016-04-27 12:59:08 +030017 //context.setOption("dt-no-colors", true);
onqtam76c13642016-05-11 17:30:29 +030018 //context.addFilter("suite", "randomness");
19 //context.setOption("sort", "rand");
20 //context.setOption("rand-seed", 435);
hardlyb1e7e142014-08-06 00:43:51 +030021
22 // run
onqtamb91b68e2016-05-04 20:16:19 +030023 int res = context.run();
24
25 if(context.shouldExit())
26 return res;
hardlyb1e7e142014-08-06 00:43:51 +030027
28#if defined(WITH_PAUSE)
29 system("pause");
onqtam8ccce3b2016-04-20 20:46:05 +030030#endif // WITH_PAUSE
hardlyb1e7e142014-08-06 00:43:51 +030031
32 return res;
33}