elliotchance / tf

✔️ tf is a microframework for parameterized testing of functions and HTTP in Go.
MIT License
137 stars 3 forks source link

Add Panics() #2

Open elliotchance opened 5 years ago

elliotchance commented 5 years ago

This works the same way as Errors in #1:

Divide(5, 0).Panics() // pass
Divide(5, 0).Panics("divide-by-zero") // pass
Divide(5, 0).Panics("foo") // fail
m1ome commented 5 years ago

I am on it, also some refactoring required to make it done.