Negative asserts that the specified element is negative assert.Negative(t, -1) assert.Negative(t, -1.23)
(t TestingT, e interface{}, msgAndArgs ...interface{})
| 1241 | // assert.Negative(t, -1) |
| 1242 | // assert.Negative(t, -1.23) |
| 1243 | func Negative(t TestingT, e interface{}, msgAndArgs ...interface{}) { |
| 1244 | if h, ok := t.(tHelper); ok { |
| 1245 | h.Helper() |
| 1246 | } |
| 1247 | if assert.Negative(t, e, msgAndArgs...) { |
| 1248 | return |
| 1249 | } |
| 1250 | t.FailNow() |
| 1251 | } |
| 1252 | |
| 1253 | // Negativef asserts that the specified element is negative |
| 1254 | // |