Unittest Walker

Sean Kelly sean at f4.ca
Fri Dec 8 07:53:11 PST 2006


Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Lutger schrieb am 2006-12-08:
> 
> <snip>
> 
>> Good idea, I'll try it whenever I get around to install linux. What 
>> about something like this:
>>
>> unittest("testing some stuff")
>> { ... }
>>
>> or perhaps this is better:
>>
>> /// testing some stuff
>> unittest
>> {...}
>>
>> testing some_module: "testing some stuff" ... SUCCESS
>>
>>
>> Is this possible / difficult?
> 
> This would require compiler support.

Could this be accomplished by modifying moduleinit.d in Phobos?  It 
already contains a debug printf to output the module being tested.


Sean



More information about the Digitalmars-d-announce mailing list