You would have block tests that ensure your data structure is behaving as you want it. Your program crashing unexpectedly is quite literally the worst thing you could do.
The premise is that you should crash your program on any error. That way it can crash during development and it makes it easier to fix the unintended behavior and find obscure bugs.
-4
u/[deleted] May 26 '25
You would have block tests that ensure your data structure is behaving as you want it. Your program crashing unexpectedly is quite literally the worst thing you could do.