Documentation unittests are seriously awesome
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 25 21:29:38 PDT 2016
On Fri, Sep 23, 2016 at 08:32:00PM -0400, Andrei Alexandrescu via Digitalmars-d wrote:
> On 09/23/2016 04:42 PM, Nick Sabalausky wrote:
> > Just had to say it. Been using it a lot this week.
> >
> > Referring to this stuff:
> >
> > ----------------------------
> > /// Does foo stuff
> > void foo()
> > {}
> >
> > ///
> > unittest
> > {
> > // Tests and docs in one, 2-for-1 win!
> > }
> > ----------------------------
> >
> > And all just built-in. Freaking sweet.
>
> We owe this to Andrej Mitrovic IIRC! -- Andrei
Yes, we do.
T
--
Дерево держится корнями, а человек - друзьями.
More information about the Digitalmars-d
mailing list