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{})
| 473 | // assert.Lessf(t, float64(1), float64(2), "error message %s", "formatted") |
| 474 | // assert.Lessf(t, "a", "b", "error message %s", "formatted") |
| 475 | func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) bool { |
| 476 | if h, ok := t.(tHelper); ok { |
| 477 | h.Helper() |
| 478 | } |
| 479 | return Less(t, e1, e2, append([]interface{}{msg}, args...)...) |
| 480 | } |
| 481 | |
| 482 | // LessOrEqualf asserts that the first element is less than or equal to the second |
| 483 | // |