InDeltaSlicef is the same as InDelta, except it compares two slices.
(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})
| 368 | |
| 369 | // InDeltaSlicef is the same as InDelta, except it compares two slices. |
| 370 | func InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool { |
| 371 | if h, ok := t.(tHelper); ok { |
| 372 | h.Helper() |
| 373 | } |
| 374 | return InDeltaSlice(t, expected, actual, delta, append([]interface{}{msg}, args...)...) |
| 375 | } |
| 376 | |
| 377 | // InEpsilonf asserts that expected and actual have a relative error less than epsilon |
| 378 | func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool { |
no test coverage detected
searching dependent graphs…