New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: comparison between containers #231
Comments
Original comment by
|
Original comment by |
I want to ask another question, do we have a way to compare two containers which contains same items but not in same order. |
We can compare them, but the answer will be "not equal". |
There is a section about container matchers in the docs of Google Mock: https://github.com/google/googlemock/blob/master/googlemock/docs/v1_7/CheatSheet.md#container-matchers |
great, Thanks, may be I am sucked in old doc of Gtest. Thanks again
On Oct 26, 2018, at 22:34, Eirik Marthinsen <notifications@github.com<mailto:notifications@github.com>> wrote:
I want to ask another question, do we have a way to compare two containers which contains same items but not in same order.
There is a section about container matchers in the docs of Google Mock: [https://github.com/google/googlemock/blob/master/googlemock/docs/v1_7/CheatSheet.md#container-matchers](Google Mock Cheat Sheet)
EXPECT_THAT(my_container, UnorderedElementsAreArray(expected_container)); might help.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#231 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AITOjyBgA5Fv7tOzzSlOV29cAK3G_Wthks5uox1ugaJpZM4X7sJQ>.
|
Original issue reported on code.google.com by
johnson.seth.r@gmail.com
on 2 Dec 2009 at 2:18Attachments:
The text was updated successfully, but these errors were encountered: