Lessf asserts that the first element is less than the second assert.Lessf(t, 1, 2, "error message %s", "formatted") assert.Lessf(t, float64(1), float64(2), "error message %s", "formatted") assert.Lessf(t, "a", "b", "error message %s", "formatted")
(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})
| 1227 | // assert.Lessf(t, float64(1), float64(2), "error message %s", "formatted") |
| 1228 | // assert.Lessf(t, "a", "b", "error message %s", "formatted") |
| 1229 | func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) { |
| 1230 | if h, ok := t.(tHelper); ok { |
| 1231 | h.Helper() |
| 1232 | } |
| 1233 | if assert.Lessf(t, e1, e2, msg, args...) { |
| 1234 | return |
| 1235 | } |
| 1236 | t.FailNow() |
| 1237 | } |
| 1238 | |
| 1239 | // Negative asserts that the specified element is negative |
| 1240 | // |