-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[C++] Add operator== for interfaces with an Equals() method #23110
Comments
Ben Kietzman / @bkietz: |
Ben Kietzman / @bkietz: At the same time it'd be useful to incorporate the |
Antoine Pitrou / @pitrou: |
Todd Farmer / @toddfarmer: |
Ben Harkins / @benibus: |
Antoine Pitrou / @pitrou: |
Antoine Pitrou / @pitrou: |
A common pattern in tests is
ASSERT_TRUE(schm->Equals(*other)
. The addition of overloaded equality operators will allow this o be writtenASSERT_EQ(*schm, *other)
, which is more idiomatic GTEST usage and will allow more informative assertion failure messages.Reporter: Ben Kietzman / @bkietz
Assignee: Ben Harkins / @benibus
PRs and other links:
Note: This issue was originally created as ARROW-6772. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: