From 135b468c5ade2c55ea86705e9454156367ce536e Mon Sep 17 00:00:00 2001 From: Arjun Mahishi Date: Fri, 23 Feb 2024 00:22:58 +0530 Subject: [PATCH] assert: honour the msgAndArgs provided in InEpsilon --- assert/assertions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assert/assertions.go b/assert/assertions.go index f37659abb..a291997e9 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -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 {