Description

Panics asserts that the code inside the specified PanicTestFunc panics.

a.Panics(func(){
  GoCrazy()
}, "Calling GoCrazy() should panic")

Returns whether the assertion was successful (true) or not (false).