(t *testing.T)
| 250 | } |
| 251 | |
| 252 | func TestPanicsWrapper(t *testing.T) { |
| 253 | |
| 254 | assert := New(new(testing.T)) |
| 255 | |
| 256 | if !assert.Panics(func() { |
| 257 | panic("Panic!") |
| 258 | }) { |
| 259 | t.Error("Panics should return true") |
| 260 | } |
| 261 | |
| 262 | if assert.Panics(func() { |
| 263 | }) { |
| 264 | t.Error("Panics should return false") |
| 265 | } |
| 266 | |
| 267 | } |
| 268 | |
| 269 | func TestNotPanicsWrapper(t *testing.T) { |
| 270 |