Skip to content

Commit

Permalink
Add msgAndArgs pass forward to InDelta from InDeltaSlice
Browse files Browse the repository at this point in the history
  • Loading branch information
tedeh authored and DAddYE committed May 26, 2017
1 parent 158f9d0 commit d2f3716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assert/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d2f3716

Please sign in to comment.