Lessf asserts that the first element is less than the second require.Lessf(t, 1, 2, "error message %s", "formatted") require.Lessf(t, float64(1), float64(2), "error message %s", "formatted") require.Lessf(t, "a", "b", "error message %s", "formatted")
(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})
| 1270 | // require.Lessf(t, float64(1), float64(2), "error message %s", "formatted") |
| 1271 | // require.Lessf(t, "a", "b", "error message %s", "formatted") |
| 1272 | func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) { |
| 1273 | if h, ok := t.(tHelper); ok { |
| 1274 | h.Helper() |
| 1275 | } |
| 1276 | if assert.Lessf(t, e1, e2, msg, args...) { |
| 1277 | return |
| 1278 | } |
| 1279 | t.FailNow() |
| 1280 | } |
| 1281 | |
| 1282 | // Negative asserts that the specified element is negative |
| 1283 | // |