Unittest helper module?

Chad J gamerChad at _spamIsBad_gmail.com
Fri Aug 31 19:31:38 PDT 2007


Robert Fraser wrote:

> Sounds like a great application of macros... Something like this:
> 
> macro test(e : A == B)
> {
>     writefln("%s: %s", e.stringof, e ? "true", "false");
>     writefln("   %s = %s", A.stringof, A);
>     writefln("   %s = %s", B.stringof, B);
> }

Yep.  Just gotta wait for D 3.0 :)
(or whatever version it will be)


More information about the Digitalmars-d-learn mailing list