Ah, simple solution to unittests inside templates

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 19 09:05:23 PDT 2016


On Mon, Sep 19, 2016 at 09:02:05AM -0700, H. S. Teoh via Digitalmars-d wrote:
> On Sat, Sep 17, 2016 at 01:22:52PM -0400, Andrei Alexandrescu via Digitalmars-d wrote:
> > Recall the discussion a few days ago about unittests inside templates
> > being instantiated with the template. Often that's desirable, but
> > sometimes not - for example when you want to generate nice ddoc
> > unittests and avoid bloating. For those cases, here's a simple
> > solution that I don't think has been mentioned:
> 
> I've already mentioned this exact idea recently in the d-learn forum.
> Nobody responded then.
[...]

Correction: it was on this very same forum:

	http://forum.dlang.org/post/mailman.96.1472754654.2965.digitalmars-d@puremagic.com


T

-- 
May you live all the days of your life. -- Jonathan Swift


More information about the Digitalmars-d mailing list