unittest ddoc.

David Nadlinger see at klickverbot.at
Mon Jan 30 08:45:03 PST 2012


On 1/30/12 5:39 PM, Gor Gyolchanyan wrote:
> Wouldn't it be great if the compiler inserted the body of the unittest
> ino the ddoc as an example?

At least for me, unit tests tend to be more complex/convoluted than 
example code, because they cover different edge cases, etc., so I'd 
rather go the opposite direction: allow automatic extraction of 
»Example:« blocks as unit tests (this has also been proposed for Phobos 
before).

David


More information about the Digitalmars-d mailing list