Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/CompilationTests.cpp
diff options
context:
space:
mode:
authorPhil Nash2017-08-09 12:10:14 +0100
committerPhil Nash2017-08-09 12:10:14 +0100
commitee9b19efd3737afc93e14023cc0b4a9fd2a21b7c (patch)
tree6bee3b9ac3be2a8057fa767bab44386c12a7b13a /projects/SelfTest/CompilationTests.cpp
parentb59e0ed48a4d94f9e595a5936434e9bad7834ece (diff)
downloadcatch3-ee9b19efd3737afc93e14023cc0b4a9fd2a21b7c.tar.gz
Moved matcher-based capture macros into their own file
- this file excluded from the CATCH_CONFIG_DISABLE_MATCHERS path. - matchers are always compiled in to the impl file - _THROWS_WITH macros are still available with matchers disabled - but only the ones that take a string - tests that use matchers have #ifdefs, so the whole SelfTest project can compile with matchers disable.
Diffstat (limited to 'projects/SelfTest/CompilationTests.cpp')
-rw-r--r--projects/SelfTest/CompilationTests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/projects/SelfTest/CompilationTests.cpp b/projects/SelfTest/CompilationTests.cpp
index e6c31f65..4dd260f8 100644
--- a/projects/SelfTest/CompilationTests.cpp
+++ b/projects/SelfTest/CompilationTests.cpp
@@ -43,7 +43,9 @@ bool templated_tests(T t) {
REQUIRE_THROWS(throws_int(true));
CHECK_THROWS_AS(throws_int(true), int);
REQUIRE_NOTHROW(throws_int(false));
+#ifndef CATCH_CONFIG_DISABLE_MATCHERS
REQUIRE_THAT("aaa", Catch::EndsWith("aaa"));
+#endif
return true;
}