catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Improve the REQUIRE_THROWS_MATCHES documentation a bit
- Commit
ab80277a861276ca0e5ad5062597c642da4a6933- Author
- Martin Hořeňovský ·
- Parents
7e7ab0e28b23
Changes
docs/assertions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assertions.md b/docs/assertions.md index 07d2484e..682eb6e7 100644 --- a/docs/assertions.md +++ b/docs/assertions.md @@ -136,7 +136,7 @@ REQUIRE_THROWS_WITH( dismantleHal(), "My mind is going" ); * **REQUIRE_THROWS_MATCHES(** _expression_, _exception type_, _matcher for given exception type_ **)** and * **CHECK_THROWS_MATCHES(** _expression_, _exception type_, _matcher for given exception type_ **)** -Expects that exception of _exception type_ is thrown and it matches provided matcher (see next section for Matchers). +Expects that exception of _exception type_ is thrown and it matches provided matcher (see the [documentation for Matchers](matchers.md#top)). _Please note that the `THROW` family of assertions expects to be passed a single expression, not a statement or series of statements. If you want to check a more complicated sequence of operations, you can use a C++11 lambda function._