Added test type for asserting a thrown exception #6

Merged
merged 1 commit into from Oct 10, 2012
Commits on Oct 9, 2012
  1. Added test type for asserting a thrown exception

    epixa committed Oct 9, 2012
    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.