[Issue 5091] main runs after unittests

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Oct 14 11:18:57 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=5091

--- Comment #14 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
These days I just use:

-----
import std.stdio;

version (unittest) void main() { writeln("Tests finished"); }
else:

void main ( string[] args )
{
    // ..
}
-----

It doesn't look too ugly.

--


More information about the Digitalmars-d-bugs mailing list