mirror of
https://github.com/google/googletest.git
synced 2024-12-26 17:41:03 +08:00
Remove mention of using ASSERT_...
statements inside custom matcher definitions.
PiperOrigin-RevId: 691994071 Change-Id: I63913152217c99b8c08ae6af8924bc28b02aa9d0
This commit is contained in:
parent
5ed2186395
commit
1204d63444
@ -3387,9 +3387,9 @@ With this definition, the above assertion will give a better message:
|
|||||||
|
|
||||||
#### Using EXPECT_ Statements in Matchers
|
#### Using EXPECT_ Statements in Matchers
|
||||||
|
|
||||||
You can also use `EXPECT_...` (and `ASSERT_...`) statements inside custom
|
You can also use `EXPECT_...` statements inside custom matcher definitions. In
|
||||||
matcher definitions. In many cases, this allows you to write your matcher more
|
many cases, this allows you to write your matcher more concisely while still
|
||||||
concisely while still providing an informative error message. For example:
|
providing an informative error message. For example:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
MATCHER(IsDivisibleBy7, "") {
|
MATCHER(IsDivisibleBy7, "") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user