Add assertThrows#1
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.