August 20, 2015 Automatically verifying code samples on dlang.org | ||||
|---|---|---|---|---|
| ||||
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?
--
/Jacob Carlborg
| ||||
August 20, 2015 Re: Automatically verifying code samples on dlang.org | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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. | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply