From 05e8a0eda380579888eb53c394909df027f06991 Mon Sep 17 00:00:00 2001 From: Joshua T Corbin Date: Thu, 13 Jul 2017 09:51:06 -0700 Subject: [PATCH] Fix the actuality of InEpsilon --- assert/assertions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assert/assertions.go b/assert/assertions.go index c632bc7..6d92506 100644 --- a/assert/assertions.go +++ b/assert/assertions.go @@ -972,7 +972,7 @@ func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, msgAnd } if actualEpsilon > epsilon { return Fail(t, fmt.Sprintf("Relative error is too high: %#v (expected)\n"+ - " < %#v (actual)", actualEpsilon, epsilon), msgAndArgs...) + " < %#v (actual)", epsilon, actualEpsilon), msgAndArgs...) } return true