onqtam | 4984dd7 | 2016-03-20 23:32:15 +0200 | [diff] [blame] | 1 | //#define DOCTEST_DISABLE
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 2 |
|
onqtam | cf9812f | 2016-04-19 23:54:34 +0300 | [diff] [blame] | 3 | //#include "doctest.h"
|
onqtam | 4984dd7 | 2016-03-20 23:32:15 +0200 | [diff] [blame] | 4 | #define DOCTEST_IMPLEMENT
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 5 | #include "doctest.h"
|
| 6 |
|
| 7 | #include <cstdio>
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 8 |
|
| 9 | int main(int argc, char** argv) {
|
| 10 | // initialize
|
| 11 | doctest::Context context(argc, argv);
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 12 |
|
| 13 | // overrides
|
| 14 | context.setOption("dt-case-sensitive", true);
|
| 15 | context.addFilter("dt-name", "zzz");
|
| 16 |
|
| 17 | // run
|
| 18 | int res = context.runTests();
|
| 19 |
|
| 20 | #if defined(WITH_PAUSE)
|
| 21 | system("pause");
|
onqtam | 8ccce3b | 2016-04-20 20:46:05 +0300 | [diff] [blame^] | 22 | #endif // WITH_PAUSE
|
hardly | b1e7e14 | 2014-08-06 00:43:51 +0300 | [diff] [blame] | 23 |
|
| 24 | return res;
|
| 25 | }
|