Fix InDelta expected nan check message

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

View File

@ -908,7 +908,7 @@ func InDelta(t TestingT, expected, actual interface{}, delta float64, msgAndArgs
}
if math.IsNaN(af) {
return Fail(t, fmt.Sprintf("Actual must not be NaN"), msgAndArgs...)
return Fail(t, fmt.Sprintf("Expected must not be NaN"), msgAndArgs...)
}
if math.IsNaN(bf) {