Skip to content

Commit

Permalink
assert: honour the msgAndArgs provided with each InEpsilon
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunmahishi committed Feb 22, 2024
1 parent ecdde72 commit 73f5f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 73f5f7f

Please sign in to comment.