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
When comparing uint slices with cmp.Diff the output displays differences as hexadecimal strings. While this is easily readable for e.g. bytes, it can be confusing when debugging larger numbers.
It would be nice to have options to control the format used to output numbers.
When comparing uint slices with
cmp.Diff
the output displays differences as hexadecimal strings. While this is easily readable for e.g. bytes, it can be confusing when debugging larger numbers.It would be nice to have options to control the format used to output numbers.
E.g. the following test:
produces the output:
In comparison, when comparing
[]int
slices with the following test:the following output is produced:
which is arguably more readable.
The text was updated successfully, but these errors were encountered: