-
Notifications
You must be signed in to change notification settings - Fork 19
Add assertThrows #1
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
Conversation
|
Could you add a comment to the new function(s) please? Also, shouldn't we be using |
|
The idea behind this was, if you have something which is |
|
In what situation would you want pure code to throw an exception? 😄 |
|
To make sure that an unsafe function does what you want it to? Eg |
|
Gotcha, that makes sense. Perhaps we should mention something like that in the comment too then ("this is for testing unsafe functions" or whtever), as I think |
|
👍 |
|
Great, thanks! Oh, er, one last thing - can you remove the |
|
👍 |
I'm currently trying to improve the compiler test suite, and so this is to replace
assertPartialin the test prelude. This will probably be useful more generally too, though.