How to run unittests?

al al at la.com
Sat Oct 31 12:53:11 PDT 2009


It seems that unittests are not run (I've tried putting while(1){} and writef() there - no effect).

Even this code doesn't run assert():

import std.stdio;

int main(string[] args)
{
	assert(args.length == -1);
	writef("shouldn't work!");
	return 0;
}


I'm using:

dmd -debug -w -unittest -run main.d

Is there a secred debug switch, or is it simply a bug? Which version of DMD is usable? (I've got v1.050)



More information about the Digitalmars-d-learn mailing list