digitalmars.D - Automatically verifying code samples on dlang.org
- Jacob Carlborg (7/7) Aug 19 2015 A post in the learn newsgroup got me thinking. Do we have a way to
- H. S. Teoh via Digitalmars-d (9/14) Aug 20 2015 [...]
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
Aug 19 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.
Aug 20 2015