unittest ddoc.

Jens Mueller jens.k.mueller at gmx.de
Tue Jan 31 06:08:04 PST 2012


Kapps wrote:
> On 30/01/2012 12:34 PM, Don Clugston wrote:
> >On 30/01/12 19:28, Marco Leise wrote:
> >>Am 30.01.2012, 18:55 Uhr, schrieb Don Clugston <dac at nospam.com>:
> >>
> >>>OR:
> >>>/** optionally explain what this test is doing */
> >>>unittest {.... }
> >>
> >>Not bad. So a documented unittest would be turned into an example
> >>section with "optinally explain what this test is doing" in DDoc?
> >
> >Yes.
> >Has the advantage that it doesn't require any new syntax.
> 
> I really like this suggestion. Encourages unit tests AND encourages
> examples while providing a nice way to do both, removing a bunch of
> boilerplate code, and not breaking any existing code.

You can vote for it to hopefully raise some attention.
http://d.puremagic.com/issues/show_bug.cgi?id=2630

Jens


More information about the Digitalmars-d mailing list