Open klyubavsky opened 1 year ago
As subj states looks like strings in struct fields are not compared:
if diff := deep.Equal(struct{ foo string }{foo: "aa"}, struct{ foo string }{foo: "aab"}); diff != nil { t.Error(diff) }
will pass without error
Does it work if you set CompareUnexportedFields = true?
CompareUnexportedFields = true
Oh, sorry, didn't know that it is disabled by default :) Please resolve the issue. Thank you
As subj states looks like strings in struct fields are not compared:
will pass without error