Extending unittests [proposal] [Proof Of Concept]
Jacob Carlborg
doob at me.com
Fri Sep 21 11:36:04 PDT 2012
On 2012-09-21 20:01, Johannes Pfau wrote:
> I didn't think of setAssertHandler. My changes are perfectly compatible
> with it.
> IIRC setAssertHandler has the small downside that it's used for all
> asserts, not only those used in unit tests? I'm not sure if that's a
> drawback or actually useful.
That's no problem, there's a predefined version, "unittest", when you
pass the -unittest flag to the compiler:
version (unittest)
setAssertHandler(myUnitTestSpecificAssertHandler);
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list