Skip to content

Commit

Permalink
Remove mention of using ASSERT_... statements inside custom matcher…
Browse files Browse the repository at this point in the history
… definitions.

PiperOrigin-RevId: 691994071
Change-Id: I63913152217c99b8c08ae6af8924bc28b02aa9d0
  • Loading branch information
Abseil Team authored and copybara-github committed Nov 1, 2024
1 parent 5ed2186 commit 1204d63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/gmock_cook_book.md
Original file line number Diff line number Diff line change
Expand Up @@ -3387,9 +3387,9 @@ With this definition, the above assertion will give a better message:

#### Using EXPECT_ Statements in Matchers

You can also use `EXPECT_...` (and `ASSERT_...`) statements inside custom
matcher definitions. In many cases, this allows you to write your matcher more
concisely while still providing an informative error message. For example:
You can also use `EXPECT_...` statements inside custom matcher definitions. In
many cases, this allows you to write your matcher more concisely while still
providing an informative error message. For example:

```cpp
MATCHER(IsDivisibleBy7, "") {
Expand Down

0 comments on commit 1204d63

Please # to comment.