run unittest inside program

Psychological Cleanup via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 5 19:06:59 PDT 2017


Is it possible to run a unit test without adding -unittest to the 
command line?

unittest X
{
    pragma(msg, "Boo!");
}

X;

void main() { }


More information about the Digitalmars-d-learn mailing list