Skip to content

Commit 135b468

Browse files
committed
assert: honour the msgAndArgs provided in InEpsilon
1 parent ecdde72 commit 135b468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assert/assertions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, msgAnd
14631463
h.Helper()
14641464
}
14651465
if math.IsNaN(epsilon) {
1466-
return Fail(t, "epsilon must not be NaN")
1466+
return Fail(t, "epsilon must not be NaN", msgAndArgs...)
14671467
}
14681468
actualEpsilon, err := calcRelativeError(expected, actual)
14691469
if err != nil {

0 commit comments

Comments
 (0)