Fix the actuality of InEpsilon

pull/404/head
Joshua T Corbin 2017-07-13 09:51:06 -07:00 committed by Davide D'Agostino
parent 2f1cd6b778
commit 05e8a0eda3
1 changed files with 1 additions and 1 deletions

View File

@ -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