onqtam | 862a3bb | 2016-04-27 18:19:00 +0300 | [diff] [blame] | 1 | //#define DOCTEST_CONFIG_DISABLE |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 2 | |
onqtam | cae7312 | 2016-04-29 14:57:23 +0300 | [diff] [blame] | 3 | #include "doctest.h" |
onqtam | 862a3bb | 2016-04-27 18:19:00 +0300 | [diff] [blame] | 4 | #define DOCTEST_CONFIG_IMPLEMENT |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 5 | #include "doctest.h" |
6 | |||||
7 | #include <cstdio> | ||||
onqtam | cae7312 | 2016-04-29 14:57:23 +0300 | [diff] [blame] | 8 | #include <cstdlib> |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 9 | |
10 | int main(int argc, char** argv) { | ||||
11 | // initialize | ||||
12 | doctest::Context context(argc, argv); | ||||
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 13 | |
14 | // overrides | ||||
15 | context.setOption("dt-case-sensitive", true); | ||||
onqtam | 862a3bb | 2016-04-27 18:19:00 +0300 | [diff] [blame] | 16 | context.setOption("no-breaks", true); |
onqtam | 0cea9bc | 2016-04-27 12:59:08 +0300 | [diff] [blame] | 17 | //context.setOption("dt-no-colors", true); |
onqtam | 76c1364 | 2016-05-11 17:30:29 +0300 | [diff] [blame^] | 18 | //context.addFilter("suite", "randomness"); |
19 | //context.setOption("sort", "rand"); | ||||
20 | //context.setOption("rand-seed", 435); | ||||
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 21 | |
22 | // run | ||||
onqtam | b91b68e | 2016-05-04 20:16:19 +0300 | [diff] [blame] | 23 | int res = context.run(); |
24 | |||||
25 | if(context.shouldExit()) | ||||
26 | return res; | ||||
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 27 | |
28 | #if defined(WITH_PAUSE) | ||||
29 | system("pause"); | ||||
onqtam | 8ccce3b | 2016-04-20 20:46:05 +0300 | [diff] [blame] | 30 | #endif // WITH_PAUSE |
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 31 | |
32 | return res; | ||||
33 | } |