diff options
| author | Martin Hořeňovský | 2020-04-26 16:25:43 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-04-26 16:25:43 +0200 |
| commit | 0470794a6821ac1a01a6a9a002a969f8350c2cd5 (patch) | |
| tree | 9713acb267dcbce2d7137968faa69552b5498eaf /tests | |
| parent | 5150fa44761da7e04a320bc4c4dd662f31caf3ab (diff) | |
| download | catch3-0470794a6821ac1a01a6a9a002a969f8350c2cd5.tar.gz | |
Split TEMPLATE_TEST* macros into their own set of files
These files are not included by the default
`#include <catch2/catch_test_macros.hpp>` path, so that users do
not have to pay for them if they do not use them. Follow up is to
split out the small part of `catch_preprocessor.hpp` used by the
default test macros (AFAIK, it is just `INTERNAL_CATCH_REMOVE_PARENS`
macro), so that it is not included by the default path either.
Also fixes #1892 by providing the missing macros.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/SelfTest/UsageTests/Class.tests.cpp | 1 | ||||
| -rw-r--r-- | tests/SelfTest/UsageTests/Misc.tests.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/SelfTest/UsageTests/Class.tests.cpp b/tests/SelfTest/UsageTests/Class.tests.cpp index 095686a1..b6009e0b 100644 --- a/tests/SelfTest/UsageTests/Class.tests.cpp +++ b/tests/SelfTest/UsageTests/Class.tests.cpp @@ -4,6 +4,7 @@ */ #include <catch2/catch_test_macros.hpp> +#include <catch2/catch_template_test_macros.hpp> #include <array> namespace{ namespace ClassTests { diff --git a/tests/SelfTest/UsageTests/Misc.tests.cpp b/tests/SelfTest/UsageTests/Misc.tests.cpp index 37210a4c..703e8f6c 100644 --- a/tests/SelfTest/UsageTests/Misc.tests.cpp +++ b/tests/SelfTest/UsageTests/Misc.tests.cpp @@ -4,6 +4,7 @@ */ #include <catch2/catch_test_macros.hpp> +#include <catch2/catch_template_test_macros.hpp> #ifdef __clang__ # pragma clang diagnostic ignored "-Wc++98-compat" |