diff options
| author | Phil Nash | 2017-08-09 12:10:14 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-08-09 12:10:14 +0100 |
| commit | ee9b19efd3737afc93e14023cc0b4a9fd2a21b7c (patch) | |
| tree | 6bee3b9ac3be2a8057fa767bab44386c12a7b13a /projects/SelfTest/CompilationTests.cpp | |
| parent | b59e0ed48a4d94f9e595a5936434e9bad7834ece (diff) | |
| download | catch3-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.cpp | 2 |
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; } |