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
For slices of type []interface{}, if elements have the same value but different type, assert.EqualValues would fail.
e.g.
// assertion would failassert.EqualValues(t, []interface{}{1}, []interface{}{int64(1)})
Now as a workaround I have to iterate over objects and compare element by element. It will be handy if assert.EqualValues compare two nested objects by element value.
The text was updated successfully, but these errors were encountered:
For slices of type []interface{}, if elements have the same value but different type,
assert.EqualValues
would fail.e.g.
Now as a workaround I have to iterate over objects and compare element by element. It will be handy if
assert.EqualValues
compare two nested objects by element value.The text was updated successfully, but these errors were encountered: