Please sign in to comment.
Added test type for asserting a thrown exception
Sometimes it is useful to test functionality that throws known exceptions given specific conditions. The only existing solution was to pass to ok() an anonymous function that manually caught and verified the exception type. This method is nicer.
- Loading branch information...