scgilardi/slingshot — Issue #21: Facilatate writing clojure.core.test tests for slingshot exceptions
Author: hugoduncan
Created: 2012-03-03 15:45:51+00:00
State: open

When writing tests, it is common to want to check that a function throws in a given situation. Since the slingshot exception class is not fixed across clojure versions, and c.c.t's thrown? takes an unevaluated exception type argument, this is not straightforward.

The code I am currently using for this is https://gist.github.com/1966770