[Issue 13454] Unit tests should be compiled in a module, where they are declared

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 27 03:12:28 PDT 2015


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

--- Comment #4 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
In practice template unittests are often independent of their template instance
and simply result in code duplication.

(In reply to Dicebot from comment #3)
> It is illegal to build D projects with non-consistent version flags exactly
> for this reason. version(unittest) is no different.

Phobos is compiled without unittests, that will prohibit user code from being
compiled with unittests.

--


More information about the Digitalmars-d-bugs mailing list