-
Notifications
You must be signed in to change notification settings - Fork 407
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
Use strcmp to compare names() #3909
Conversation
Wow, funny timing, I'll close mine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ASSERT_STREQ
https://google.github.io/googletest/primer.html#string-comparison
Doesn't this do the same? |
No. If the assertion was to fail, your solution prints something like expected TRUE got FALSE while mine prints the non matching strings. |
0fd6eb8
to
7084cce
Compare
OK, changed (and tested). |
Partly fixes #3906.