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 some values (types?), cmp.Diff returns no apparent difference though cmp.Equal returns false. The following program shows no -/+ for []int, []byte, and []float64 types.
Diff does produce output, so I'm not certain this is a bug. I was expecting (and would grateful) to see - nil / + {} in these cases as well.
For some values (types?),
cmp.Diff
returns no apparent difference thoughcmp.Equal
returns false. The following program shows no-/+
for[]int
,[]byte
, and[]float64
types.Diff
does produce output, so I'm not certain this is a bug. I was expecting (and would grateful) to see- nil / + {}
in these cases as well.Output:
The text was updated successfully, but these errors were encountered: