Automatically verifying code samples on dlang.org

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 20 15:22:05 PDT 2015


On Thu, Aug 20, 2015 at 08:51:57AM +0200, Jacob Carlborg via Digitalmars-d wrote:
> A post in the learn newsgroup got me thinking. Do we have a way to
> automatically verify code samples on dlang.org? I know that for the
> Phobos and druntime docs we can use documented unit test blocks but
> what about the rest of the documentation, i.e. that one that's written
> using .ddoc files?
[...]

I was about to suggest a fake D module named after the page title, with
attached ddoc'd unittest, but unfortunately this doesn't work because of
this issue:

	https://issues.dlang.org/show_bug.cgi?id=14383


T

-- 
Don't modify spaghetti code unless you can eat the consequences.


More information about the Digitalmars-d mailing list