Awesome: asserts turn into writeln for ddoc'd unit tests
Seb
seb at wilzba.ch
Sun Sep 17 21:36:51 UTC 2017
On Sunday, 17 September 2017 at 18:30:51 UTC, Steven
Schveighoffer wrote:
> This is something I didn't realize happened (I remember
> discussing it a while back). Awesome work whoever did it, and
> works great!
Yeah we even had a short post about it:
https://github.com/dlang/dlang.org/blob/master/assert_writeln_magic.d
> Very cool :)
Thanks!!
> A question: is this for all libraries, or is it a special case
> for dlang.org?
It's done with libdparse and only for dlang.org.
The code is actually really simple in case you are interested:
https://github.com/dlang/dlang.org/blob/master/assert_writeln_magic.d
More information about the Digitalmars-d
mailing list