Add msgAndArgs pass forward to InDelta from InDeltaSlice

pull/443/head
Tedde Lundgren 2017-02-11 11:45:59 +01:00 committed by Davide D'Agostino
parent 158f9d0389
commit d2f3716b44
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ func InDeltaSlice(t TestingT, expected, actual interface{}, delta float64, msgAn
expectedSlice := reflect.ValueOf(expected)
for i := 0; i < actualSlice.Len(); i++ {
result := InDelta(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), delta)
result := InDelta(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), delta, msgAndArgs...)
if !result {
return result
}