Statement Unittest [DRAFT]

Guillaume Piolat guillaume.piolat at gmail.com
Thu Oct 17 23:48:35 UTC 2024


On Tuesday, 15 October 2024 at 14:37:24 UTC, monkyyy wrote:
> A module-level unittest statement( uses `()` instead of `{}`) 
> for single asserts
> , with an optional string message
>
> ```d
> unittest(1==1);
> unittest(1==1,"math broke");
> ```
>
>
> https://gist.github.com/crazymonkyyy/2afa7ae1402cd246fb98bdb86dd19605

This is a pretty cool idea.
unittest being one of the big win of D, why not have more of it.


More information about the dip.development mailing list