Unittests not firing?

Mike Brown mikey.be at gmail.com
Fri Jun 11 15:20:49 UTC 2021


On Friday, 11 June 2021 at 15:13:17 UTC, rikki cattermole wrote:
>
> rdmd -main -unittest file.d
>
> ```d
> import std.stdio;
>
> unittest
> {
>     writeln("first");
> }
>
> unittest
> {
>     writeln("second");
>     assert(0);
> }
> ```
>
> Output:
>
> ```
> first
> second
> onlineapp.d(11): [unittest] unittest failure
> 1/1 modules FAILED unittests
> ```
>
> The first assert to execute should kill the rest of the 
> unittests.

Right OK, mine says 1/1 unittests failed - but this should say 
Modules?

I will interpret it as Modules, ty!


More information about the Digitalmars-d-learn mailing list