Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for tests which throw exceptions #95

Merged
merged 1 commit into from
Jul 2, 2017

Conversation

jacobstanley
Copy link
Member

This adds the evaluate :: a -> Test m a function which will evaluate its argument and fail the test if doing so throws an exception. I have updated assert and (===) to both make use of this, so exceptions thrown from pure code should now be reported properly.

This fixes #57 and addresses an issue @tmcdonell raised IRL.

Sorry for the potentially misleading title @erikd, this does not solve #84.

screen shot 2017-07-02 at 10 33 32 am

@jacobstanley jacobstanley merged commit 8763d04 into master Jul 2, 2017
@jacobstanley jacobstanley deleted the topic/exception branch July 2, 2017 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors in event of exceptions can be more useful
1 participant