Closed philomates closed 6 years ago
This is probably not feasible, given the following example
(fact
(throw-exception "msg") =not=> (throws "another-message" Error #(= "another-message" (.getMessage %))))
There is no way to know when the checker is validating something about the exception thrown on the right side of the arrow, so it is impossible to know when the exception should be treated as a check failure or not
In midje you can do
which is technically true. That said, this can be problematic because it hides exceptions that may come up from bugs (happened to my colleague the other day)
For example:
Proposal:
=not=>
should behave the same as=>
when the left side throws an exception.