reiddraper / simple-check

QuickCheck for Clojure
http://reiddraper.github.io/simple-check/
286 stars 18 forks source link

Rudimentary support for exceptions as results #1

Closed cemerick closed 11 years ago

cemerick commented 11 years ago

Add rudimentary support for proceeding with shrinking even if the function being tested throws exceptions for some inputs. When a function under test throws an exception, it is captured for the :result slot, and inputs are shrunk as if the failure were a simple non-truthy return.

reiddraper commented 11 years ago

Silly git workflow on my part and I cherry-picked this change before adding a test, the sha become: 2a4a5033fd1898cfad21a418a9d199935753ff55. Merged.