Fix actual float conversion error message under calcRelativeError

This commit is contained in:
Joshua T Corbin 2017-07-13 10:18:23 -07:00 committed by Davide D'Agostino
parent f6abca5936
commit 4b92304da8

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