diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2017-09-01 15:20:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-01 15:20:54 -0400 |
commit | 7c6353d29a147cad1c904bf2957fd4ca2befe135 (patch) | |
tree | 5a1088053ecdd775617be3d732707a94ae53a383 /googlemock/docs | |
parent | 52b6ca3428ee926dd446e4a796e7c1b6a1bf8df8 (diff) | |
parent | 194e3c810299d0f122111c33c403f85c882dfafd (diff) | |
download | googletest-7c6353d29a147cad1c904bf2957fd4ca2befe135.tar.gz googletest-7c6353d29a147cad1c904bf2957fd4ca2befe135.tar.bz2 googletest-7c6353d29a147cad1c904bf2957fd4ca2befe135.zip |
Merge pull request #900 from Gallaecio/patch-1
Fix WhenSorted() documentation example
Diffstat (limited to 'googlemock/docs')
-rw-r--r-- | googlemock/docs/CheatSheet.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/docs/CheatSheet.md b/googlemock/docs/CheatSheet.md index ef4451b8..c94c2dac 100644 --- a/googlemock/docs/CheatSheet.md +++ b/googlemock/docs/CheatSheet.md @@ -249,7 +249,7 @@ match them more flexibly, or get more informative messages, you can use: | `SizeIs(m)` | `argument` is a container whose size matches `m`. E.g. `SizeIs(2)` or `SizeIs(Lt(2))`. | | `UnorderedElementsAre(e0, e1, ..., en)` | `argument` has `n + 1` elements, and under some permutation each element matches an `ei` (for a different `i`), which can be a value or a matcher. 0 to 10 arguments are allowed. | | `UnorderedElementsAreArray({ e0, e1, ..., en })`, `UnorderedElementsAreArray(array)`, or `UnorderedElementsAreArray(array, count)` | The same as `UnorderedElementsAre()` except that the expected element values/matchers come from an initializer list, STL-style container, or C-style array. | -| `WhenSorted(m)` | When `argument` is sorted using the `<` operator, it matches container matcher `m`. E.g. `WhenSorted(UnorderedElementsAre(1, 2, 3))` verifies that `argument` contains elements `1`, `2`, and `3`, ignoring order. | +| `WhenSorted(m)` | When `argument` is sorted using the `<` operator, it matches container matcher `m`. E.g. `WhenSorted(ElementsAre(1, 2, 3))` verifies that `argument` contains elements `1`, `2`, and `3`, ignoring order. | | `WhenSortedBy(comparator, m)` | The same as `WhenSorted(m)`, except that the given comparator instead of `<` is used to sort `argument`. E.g. `WhenSortedBy(std::greater<int>(), ElementsAre(3, 2, 1))`. | Notes: |