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
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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
It's confusing and error-prone that
NotSamechecks 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?
All reactions