Less asserts that the first element is less than the second assert.Less(t, 1, 2) assert.Less(t, float64(1), float64(2)) assert.Less(t, "a", "b")
(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
| 412 | // assert.Less(t, float64(1), float64(2)) |
| 413 | // assert.Less(t, "a", "b") |
| 414 | func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool { |
| 415 | if h, ok := t.(tHelper); ok { |
| 416 | h.Helper() |
| 417 | } |
| 418 | return compareTwoValues(t, e1, e2, []compareResult{compareLess}, "\"%v\" is not less than \"%v\"", msgAndArgs...) |
| 419 | } |
| 420 | |
| 421 | // LessOrEqual asserts that the first element is less than or equal to the second |
| 422 | // |
searching dependent graphs…