3 ms·
Mabye I never needed them much because I have mostly been using Java, which has things like NullPointerException. So no need to write an assertion for that spec
by Tichy 19y ago
Mabye I never needed them much because I have mostly been using Java, which has things like NullPointerException. So no need to write an assertion for that special case. By blow up I meant do something bad, not fail in a noisy way. That would be the exception.
- darkclark 19y agoUnit tests are the way to separate assertions from your implementation code to avoid messiness.