Greater asserts that the first element is greater than the second a.Greater(2, 1) a.Greater(float64(2), float64(1)) a.Greater("b", "a")
(e1 interface{}, e2 interface{}, msgAndArgs ...interface{})
| 478 | // a.Greater(float64(2), float64(1)) |
| 479 | // a.Greater("b", "a") |
| 480 | func (a *Assertions) Greater(e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) { |
| 481 | if h, ok := a.t.(tHelper); ok { |
| 482 | h.Helper() |
| 483 | } |
| 484 | Greater(a.t, e1, e2, msgAndArgs...) |
| 485 | } |
| 486 | |
| 487 | // GreaterOrEqual asserts that the first element is greater than or equal to the second |
| 488 | // |