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{})
| 492 | // assert.Lessf(t, float64(1), float64(2), "error message %s", "formatted") |
| 493 | // assert.Lessf(t, "a", "b", "error message %s", "formatted") |
| 494 | func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) bool { |
| 495 | if h, ok := t.(tHelper); ok { |
| 496 | h.Helper() |
| 497 | } |
| 498 | return Less(t, e1, e2, append([]interface{}{msg}, args...)...) |
| 499 | } |
| 500 | |
| 501 | // LessOrEqualf asserts that the first element is less than or equal to the second |
| 502 | // |