mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-24 14:26:10 +01:00
Use correct matcher name in the matcher example in assertion docs
This commit is contained in:
parent
fe483c056d
commit
008676a741
@ -110,7 +110,7 @@ Expects that an exception is thrown that, when converted to a string, matches th
|
|||||||
|
|
||||||
e.g.
|
e.g.
|
||||||
```cpp
|
```cpp
|
||||||
REQUIRE_THROWS_WITH( openThePodBayDoors(), Contains( "afraid" ) && Contains( "can't do that" ) );
|
REQUIRE_THROWS_WITH( openThePodBayDoors(), ContainsSubstring( "afraid" ) && ContainsSubstring( "can't do that" ) );
|
||||||
REQUIRE_THROWS_WITH( dismantleHal(), "My mind is going" );
|
REQUIRE_THROWS_WITH( dismantleHal(), "My mind is going" );
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user