-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
buggood first issuehelp wantedpkg-assertChange related to package testify/assertChange related to package testify/assert
Description
Bug summary
When InEpsilonSlice takes a custom error message and the assertion fails, the custom message isn't displayed.
The issue is that in InEpsilonSlice implementation, msgAndArgs isn't passed to InEpsilon when iterating over slice elements:
Line 1366 in 0ab3ce1
| result := InEpsilon(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), epsilon) |
It should be:
result := InEpsilon(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), epsilon, msgAndArgs...)To reproduce
Write any test where InEpsilonSlice fails and takes a custom message. The message wouldn't be displayed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
buggood first issuehelp wantedpkg-assertChange related to package testify/assertChange related to package testify/assert