(t *testing.T)
| 267 | } |
| 268 | |
| 269 | func TestNotPanicsWrapper(t *testing.T) { |
| 270 | |
| 271 | assert := New(new(testing.T)) |
| 272 | |
| 273 | if !assert.NotPanics(func() { |
| 274 | }) { |
| 275 | t.Error("NotPanics should return true") |
| 276 | } |
| 277 | |
| 278 | if assert.NotPanics(func() { |
| 279 | panic("Panic!") |
| 280 | }) { |
| 281 | t.Error("NotPanics should return false") |
| 282 | } |
| 283 | |
| 284 | } |
| 285 | |
| 286 | func TestNoErrorWrapper(t *testing.T) { |
| 287 | assert := New(t) |