-
Notifications
You must be signed in to change notification settings - Fork 211
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
Different objects are formatted identically #194
Comments
Without runnable code, there isn't much we can do to debug this. Typically when something like this happens, it's because cmp is comparing upon some value that is incomparable (e.g., a cache, a mutex, a floating-point NaN, etc). |
Hi, @dsnet! Thank you for such a quick answer. Our project is going to be published under Apache 2.0 license, so I think there's no problem for me to share this project with you now. I've added you to our private repo as an outside collaborator. Please, check your email for details. |
Following up here: I don't think I ever got any such link in my email. |
@dsnet |
Oops. Accidentally closed 🥇 |
@dsnet Any progress on this issue? We could probably schedule a call to work on this issue? |
Okay, I was finally able to identify the issue. I was comparing the array of object with array of pointers to objects. The problems is that |
Hi, guys. I'm trying to write a set of tests that will compare existing security group with a predefined ones. For that I'm using this library to compare two groups - the one that is received via AWS DescribeSecurityGroups request and the one I define.
The predefined struct is:
When I compared it for the first time I got "false" result and decided to add some logging to figure out the root of the issue. The cmp.Diff gave me the following output:
As you can see there is a perfect match of two objects, however they are not equal according to cmp.Equal method.
The text was updated successfully, but these errors were encountered: