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{})
| 1180 | // assert.Less(t, float64(1), float64(2)) |
| 1181 | // assert.Less(t, "a", "b") |
| 1182 | func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) { |
| 1183 | if h, ok := t.(tHelper); ok { |
| 1184 | h.Helper() |
| 1185 | } |
| 1186 | if assert.Less(t, e1, e2, msgAndArgs...) { |
| 1187 | return |
| 1188 | } |
| 1189 | t.FailNow() |
| 1190 | } |
| 1191 | |
| 1192 | // LessOrEqual asserts that the first element is less than or equal to the second |
| 1193 | // |