File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 20
20
#endif
21
21
// #define CATCH_CONFIG_ENABLE_TUPLE_STRINGMAKER
22
22
#define CATCH_CONFIG_ENABLE_ALL_STRINGMAKERS
23
- #if __has_include(" catch2/catch.hpp" )
23
+ #if __has_include(< catch2/catch.hpp> )
24
24
#include < catch2/catch.hpp>
25
+ #elif __has_include("single_include/catch.hpp")
26
+ #include " single_include/catch.hpp"
25
27
#elif __has_include("contrib/catch.hpp")
26
28
#include " contrib/catch.hpp"
29
+ #else
30
+ #error "Could not find catch.hpp"
27
31
#endif
28
32
29
33
#define SKIPTEST , " [!hide]"
36
40
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
37
41
#endif
38
42
#include < ostream>
39
- #if __has_include("contrib/doctest.h")
43
+ #if __has_include(<doctest/doctest.h>)
44
+ #include < doctest/doctest.h>
45
+ #elif __has_include("single_include/doctest.h")
46
+ #include " single_include/doctest.h"
47
+ #elif __has_include("contrib/doctest.h")
40
48
#include " contrib/doctest.h"
41
- #elif __has_include("doctest/doctest.h")
42
- #include " doctest/ doctest.h"
49
+ #else
50
+ #error "Could not find doctest.h"
43
51
#endif
44
52
#define SECTION (...) SUBCASE(__VA_ARGS__)
45
53
#define SKIPTEST * doctest::skip (true )
48
56
#else
49
57
#error define either USE_CATCH or USE_DOCTEST
50
58
#endif
59
+
60
+ #define IN_UNITTEST 1
You can’t perform that action at this time.
0 commit comments