Skip to content

Commit e9ea773

Browse files
Update assert/assertions.go
Co-authored-by: ccoVeille <[email protected]>
1 parent 07088d8 commit e9ea773

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assert/assertions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,8 +1973,8 @@ func diff(expected interface{}, actual interface{}) string {
19731973
e = spewConfigStringerEnabled.Sdump(expected)
19741974
a = spewConfigStringerEnabled.Sdump(actual)
19751975
case isStructWithUnexportedMapField(et):
1976-
e = reflect.ValueOf(expected).String()
1977-
a = reflect.ValueOf(actual).String()
1976+
e = fmt.Sprintf("%+v", expanded)
1977+
a = fmt.Sprintf("%+v", actual)
19781978
default:
19791979
e = spewConfig.Sdump(expected)
19801980
a = spewConfig.Sdump(actual)

0 commit comments

Comments
 (0)