diff options
author | Abseil Team <absl-team@google.com> | 2022-12-14 23:05:05 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-14 23:06:09 (GMT) |
commit | 41fe6be7d738237d1ca53070bd6ddebb73190b58 (patch) | |
tree | 2ae862171ad277bb7b6181ac3d7124ddf4eac277 | |
parent | e38ef3be887afc0089005e394c5001002e313960 (diff) | |
download | googletest-41fe6be7d738237d1ca53070bd6ddebb73190b58.zip googletest-41fe6be7d738237d1ca53070bd6ddebb73190b58.tar.gz googletest-41fe6be7d738237d1ca53070bd6ddebb73190b58.tar.bz2 |
Fix a typo in the gMock sample code for Defining a Custom Matcher Class.
EXPECT_CALL doesn't seem to make much sense here. I think the intent was to use EXPECT_THAT instead.
PiperOrigin-RevId: 495427663
Change-Id: I39a16ea37282729d34017c6bcd331a60cedf1fbe
-rw-r--r-- | docs/gmock_cook_book.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/gmock_cook_book.md b/docs/gmock_cook_book.md index 59aa9fc..6a795ec 100644 --- a/docs/gmock_cook_book.md +++ b/docs/gmock_cook_book.md @@ -1345,7 +1345,7 @@ class BarPlusBazEqMatcher { ... Foo foo; - EXPECT_CALL(foo, BarPlusBazEq(5))...; + EXPECT_THAT(foo, BarPlusBazEq(5))...; ``` ### Matching Containers |