Negative asserts that the specified element is negative require.Negative(t, -1) require.Negative(t, -1.23)
(t TestingT, e interface{}, msgAndArgs ...interface{})
| 1284 | // require.Negative(t, -1) |
| 1285 | // require.Negative(t, -1.23) |
| 1286 | func Negative(t TestingT, e interface{}, msgAndArgs ...interface{}) { |
| 1287 | if h, ok := t.(tHelper); ok { |
| 1288 | h.Helper() |
| 1289 | } |
| 1290 | if assert.Negative(t, e, msgAndArgs...) { |
| 1291 | return |
| 1292 | } |
| 1293 | t.FailNow() |
| 1294 | } |
| 1295 | |
| 1296 | // Negativef asserts that the specified element is negative |
| 1297 | // |