Skip to content
Discussion options

You must be logged in to vote

Format to string works for me:

wantStr := fmt.Sprintf("%#v", tt.want)
gotStr := fmt.Sprintf("%#v", got)
assert.Equal(t, wantStr, gotStr)

Replies: 8 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dolmen
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dolmen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
assert.EqualValues About equality
7 participants
Converted from issue

This discussion was converted from issue #1146 on December 14, 2024 19:23.