Fix actual float conversion error message under calcRelativeError

pull/477/head^2
Joshua T Corbin 2017-07-13 10:18:23 -07:00 committed by Davide D'Agostino
parent f6abca5936
commit 4b92304da8
1 changed files with 1 additions and 1 deletions

View File

@ -954,7 +954,7 @@ func calcRelativeError(expected, actual interface{}) (float64, error) {
}
bf, bok := toFloat(actual)
if !bok {
return 0, fmt.Errorf("expected value %q cannot be converted to float", actual)
return 0, fmt.Errorf("actual value %q cannot be converted to float", actual)
}
return math.Abs(af-bf) / math.Abs(af), nil