unittest and WinMain
ElfQT
elf_qt at _deletethis_yahoo.com
Mon Mar 3 11:29:49 PST 2008
How can I run the unittest part in the code below?
I've tried several ways, but ni succes.
dmd -unittest tangoUnitTest.d
(I use "tango-0.99.4-bin-win32-dmd.1.024.zip".)
import tango.sys.win32.UserGdi;
extern (C) void rt_init( void delegate(Exception) dg = null );
extern (C) void rt_term( void delegate(Exception) dg = null );
extern (Windows)
int WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
rt_init();
rt_term();
return 0;
}
unittest
{
assert(1==2);
}
ElfQT
More information about the Digitalmars-d
mailing list