You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by n4nn31355 October 16, 2024
It's confusing and error-prone that NotSame checks nothing if any of the values is not a pointer.
Is there a reason for this, or may we consider it a bug that needs an issue?
a := struct{ byte }{}
require.NotSame(t, a, a) // Doesn't fail
require.NotSame(t, &a, &a) // Fails
```</div>
The text was updated successfully, but these errors were encountered:
Discussed in #1660
Originally posted by n4nn31355 October 16, 2024
It's confusing and error-prone that
NotSame
checks nothing if any of the values is not a pointer.Is there a reason for this, or may we consider it a bug that needs an issue?
The text was updated successfully, but these errors were encountered: