http://www.digitalmars.com/d/1.0/dmd-windows.html#switches -unittest compile in unittest code, turns on asserts, and sets the unittest version identifier http://www.digitalmars.com/d/1.0/unittest.html The version identifier unittest is predefined if the compilation is done with unit tests enabled.
D1 is no longer maintained, and this would be a DMD issue anyway.