std.unittests for (final?) review
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Jan 3 06:08:10 PST 2011
We can always resort to hacks!
module namedUnittest;
import std.stdio;
import std.string;
void main()
{
}
unittest // Foo
{
scope(failure)
{
writefln("Unittest '%s' Failed: ",
split(split(import(.stringof[7..$] ~ ".d"),
"\r\n")[__LINE__-5..__LINE__-4][0])[2]);
}
assert(0 == 1, "0 != 1");
}
..what..? Why are you looking at me like that? :p
More information about the Digitalmars-d
mailing list