testify icon indicating copy to clipboard operation
testify copied to clipboard

assert: fix interpolation using %s instead of %#v for interfaces

Open effeix opened this issue 4 years ago • 1 comments
trafficstars

Summary

Fix string interpolation issues using %s instead of %#v

Changes

Switch %s with %#v inside error messages in func Len() use err.Error() instead of only err to log the error message in func NotEqual() Switch %s with %#v inside error messages in func NotContains() Switch %s with %#v inside error messages in func Subset() Switch %s with %#v inside error messages in func NotSubset()

Motivation

The error messages were not clear on what was happening because the element is not being formatted correctly.

effeix avatar Sep 02 '21 21:09 effeix

@effeix Please rebase and fix conflicts.

dolmen avatar Jun 02 '25 09:06 dolmen