Greater asserts that the first element is greater than the second assert.Greater(t, 2, 1) assert.Greater(t, float64(2), float64(1)) assert.Greater(t, "b", "a")
(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
| 387 | // assert.Greater(t, float64(2), float64(1)) |
| 388 | // assert.Greater(t, "b", "a") |
| 389 | func Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool { |
| 390 | if h, ok := t.(tHelper); ok { |
| 391 | h.Helper() |
| 392 | } |
| 393 | failMessage := fmt.Sprintf("\"%v\" is not greater than \"%v\"", e1, e2) |
| 394 | return compareTwoValues(t, e1, e2, []compareResult{compareGreater}, failMessage, msgAndArgs...) |
| 395 | } |
| 396 | |
| 397 | // GreaterOrEqual asserts that the first element is greater than or equal to the second |
| 398 | // |