InDeltaf asserts that the two numerals are within delta of each other. assert.InDeltaf(t, math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{})
| 359 | // |
| 360 | // assert.InDeltaf(t, math.Pi, 22/7.0, 0.01, "error message %s", "formatted") |
| 361 | func InDeltaf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool { |
| 362 | if h, ok := t.(tHelper); ok { |
| 363 | h.Helper() |
| 364 | } |
| 365 | return InDelta(t, expected, actual, delta, append([]interface{}{msg}, args...)...) |
| 366 | } |
| 367 | |
| 368 | // InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys. |
| 369 | func InDeltaMapValuesf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool { |