3 ms·
I long for a language or library that would be better at contracts than just pre- and post-condition assertions. Then when assertions fail, you write a regress
by AstralStorm 10y ago
I long for a language or library that would be better at contracts than just pre- and post-condition assertions.
Then when assertions fail, you write a regression test.
But a unit test that verifies of the contract itself is verified correctly is needed too. More than once such a test actually found that it can be violated under common conditions or does not check what you thought of does. That is the main reason for "unit" tests.
It is even more required for multithreaded or parallel programming.