onqtam | cc9e865 | 2016-08-02 14:23:38 +0300 | [diff] [blame] | 1 | #define DOCTEST_CONFIG_IMPLEMENT |
2 | #include "doctest.h" | ||||
3 | |||||
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 4 | TEST_CASE("throws") { |
5 | CHECK(1 == 2); | ||||
6 | } | ||||
onqtam | cc9e865 | 2016-08-02 14:23:38 +0300 | [diff] [blame] | 7 | |
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 8 | int main(int argc, char** argv) { |
9 | doctest::Context context; | ||||
10 | |||||
11 | context.addFilter("test-case-exclude", "*math*"); | ||||
12 | context.setOption("no-breaks", true); | ||||
13 | context.setOption("sort", "name"); | ||||
onqtam | cc9e865 | 2016-08-02 14:23:38 +0300 | [diff] [blame] | 14 | |
15 | context.applyCommandLine(argc, argv); | ||||
16 | |||||
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 17 | int res = context.run(); |
onqtam | cc9e865 | 2016-08-02 14:23:38 +0300 | [diff] [blame] | 18 | |
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 19 | if(context.shouldExit()) |
20 | return res; | ||||
onqtam | cc9e865 | 2016-08-02 14:23:38 +0300 | [diff] [blame] | 21 | |
onqtam | 4321fd8 | 2016-08-02 14:59:17 +0300 | [diff] [blame] | 22 | return res; |
onqtam | cc9e865 | 2016-08-02 14:23:38 +0300 | [diff] [blame] | 23 | } |