Greaterf asserts that the first element is greater than the second assert.Greaterf(t, 2, 1, "error message %s", "formatted") assert.Greaterf(t, float64(2), float64(1), "error message %s", "formatted") assert.Greaterf(t, "b", "a", "error message %s", "formatted")
(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})
| 252 | // assert.Greaterf(t, float64(2), float64(1), "error message %s", "formatted") |
| 253 | // assert.Greaterf(t, "b", "a", "error message %s", "formatted") |
| 254 | func Greaterf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) bool { |
| 255 | if h, ok := t.(tHelper); ok { |
| 256 | h.Helper() |
| 257 | } |
| 258 | return Greater(t, e1, e2, append([]interface{}{msg}, args...)...) |
| 259 | } |
| 260 | |
| 261 | // GreaterOrEqualf asserts that the first element is greater than or equal to the second |
| 262 | // |