Postmortem: Template unittests are bad & you shouldn't catch Error

Kagamin spam at here.lot
Thu Oct 22 19:31:39 UTC 2020


On Thursday, 22 October 2020 at 16:30:57 UTC, H. S. Teoh wrote:
> The problem with that is that it quickly falls into the paradox 
> of who watches the watchers.  The next thing you know, I'm 
> asking for a way to test that my code that catches asserts are 
> actually catching asserts.  Next year I'll be asking for code 
> to test my code that tests code that catches asserts. It never 
> ends.

Paradoxes don't exist. Tests are watchers, and practice shows 
their presence is better than their absence.


More information about the Digitalmars-d mailing list