blob: 6cb9663ddec6893437e1010ea8e33dc1cd68b17b [file] [log] [blame]
onqtamcc9e8652016-08-02 14:23:38 +03001#define DOCTEST_CONFIG_IMPLEMENT
2#include "doctest.h"
3
onqtam4321fd82016-08-02 14:59:17 +03004TEST_CASE("throws") {
5 CHECK(1 == 2);
6}
onqtamcc9e8652016-08-02 14:23:38 +03007
onqtam4321fd82016-08-02 14:59:17 +03008int 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");
onqtamcc9e8652016-08-02 14:23:38 +030014
15 context.applyCommandLine(argc, argv);
16
onqtam4321fd82016-08-02 14:59:17 +030017 int res = context.run();
onqtamcc9e8652016-08-02 14:23:38 +030018
onqtam4321fd82016-08-02 14:59:17 +030019 if(context.shouldExit())
20 return res;
onqtamcc9e8652016-08-02 14:23:38 +030021
onqtam4321fd82016-08-02 14:59:17 +030022 return res;
onqtamcc9e8652016-08-02 14:23:38 +030023}