Postmortem: Template unittests are bad & you shouldn't catch Error
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Oct 22 20:54:52 UTC 2020
On Thu, Oct 22, 2020 at 07:31:39PM +0000, Kagamin via Digitalmars-d wrote:
> 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.
I agree tests are watchers. But it starts a bit ridiculous when you
need to test your tests...
T
--
Prosperity breeds contempt, and poverty breeds consent. -- Suck.com
More information about the Digitalmars-d
mailing list