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

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/UsageTests/Exception.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-01-25 09:06:25 +0100
committerMartin Hořeňovský2020-01-25 09:07:36 +0100
commit6c3a5ef625eda76a2886e15950eca85ed6ebb411 (patch)
tree0991f6b6f17024c811b26f3dca46db089739a801 /tests/SelfTest/UsageTests/Exception.tests.cpp
parentc770a9c8b5a1a079d7e4172a78107d0480ea67c5 (diff)
downloadcatch3-6c3a5ef625eda76a2886e15950eca85ed6ebb411.tar.gz
Remove CATCH_CONFIG_DISABLE_MATCHERS
Now that the recommended distribution and usage method is proper library, users can just avoid including the matcher headers to get basically the same effect.
Diffstat (limited to 'tests/SelfTest/UsageTests/Exception.tests.cpp')
-rw-r--r--tests/SelfTest/UsageTests/Exception.tests.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/SelfTest/UsageTests/Exception.tests.cpp b/tests/SelfTest/UsageTests/Exception.tests.cpp
index aafe928e..79745c8f 100644
--- a/tests/SelfTest/UsageTests/Exception.tests.cpp
+++ b/tests/SelfTest/UsageTests/Exception.tests.cpp
@@ -162,8 +162,6 @@ TEST_CASE("thrown std::strings are translated", "[.][failing][!throws]") {
}
-#ifndef CATCH_CONFIG_DISABLE_MATCHERS
-
TEST_CASE( "Exception messages can be tested for", "[!throws]" ) {
using namespace Catch::Matchers;
SECTION( "exact match" )
@@ -178,8 +176,6 @@ TEST_CASE( "Exception messages can be tested for", "[!throws]" ) {
}
}
-#endif
-
TEST_CASE( "Mismatching exception messages failing the test", "[.][failing][!throws]" ) {
REQUIRE_THROWS_WITH( thisThrows(), "expected exception" );
REQUIRE_THROWS_WITH( thisThrows(), "should fail" );