assert: honour the msgAndArgs provided in InEpsilon

pull/1548/head
Arjun Mahishi 2024-02-23 00:22:58 +05:30
parent ecdde720b4
commit 135b468c5a
1 changed files with 1 additions and 1 deletions

View File

@ -1463,7 +1463,7 @@ func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, msgAnd
h.Helper()
}
if math.IsNaN(epsilon) {
return Fail(t, "epsilon must not be NaN")
return Fail(t, "epsilon must not be NaN", msgAndArgs...)
}
actualEpsilon, err := calcRelativeError(expected, actual)
if err != nil {