Add placeholder a bit farther from the end

This commit is contained in:
Dino Radaković 2021-09-28 16:58:21 -04:00 committed by GitHub
parent d558af2ab2
commit 69b3b54f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,7 +261,7 @@ which must be a permanent callback.
## Defining Matchers ## Defining Matchers
| Macro | Description | | Macro foo | Description |
| :----------------------------------- | :------------------------------------ | | :----------------------------------- | :------------------------------------ |
| `MATCHER(IsEven, "") { return (arg % 2) == 0; }` | Defines a matcher `IsEven()` to match an even number. | | `MATCHER(IsEven, "") { return (arg % 2) == 0; }` | Defines a matcher `IsEven()` to match an even number. |
| `MATCHER_P(IsDivisibleBy, n, "") { *result_listener << "where the remainder is " << (arg % n); return (arg % n) == 0; }` | Defines a matcher `IsDivisibleBy(n)` to match a number divisible by `n`. | | `MATCHER_P(IsDivisibleBy, n, "") { *result_listener << "where the remainder is " << (arg % n); return (arg % n) == 0; }` | Defines a matcher `IsDivisibleBy(n)` to match a number divisible by `n`. |
@ -269,7 +269,7 @@ which must be a permanent callback.
**Notes:** **Notes:**
1. The `MATCHER*` macros cannot be used inside a function or class. foo 1. The `MATCHER*` macros cannot be used inside a function or class.
2. The matcher body must be *purely functional* (i.e. it cannot have any side 2. The matcher body must be *purely functional* (i.e. it cannot have any side
effect, and the result must not depend on anything other than the value effect, and the result must not depend on anything other than the value
being matched and the matcher parameters). being matched and the matcher parameters).