There must be module with test assertions in Phobos
jmh530
john.michael.hall at gmail.com
Fri Mar 31 15:46:20 UTC 2023
On Friday, 31 March 2023 at 14:48:01 UTC, David Gileadi wrote:
> [snip]
> Perhaps it should also get enabled by default when the
> -unittest flag is passed.
Eh, it isn't perfect since it replaces the identifier with their
values. The result would have a little more detail.
I've been using mir-algorithm's custom assertations lately [1],
but unit-threaded [2] is another alternative that Atila built. I
don't know off hand is unit-threaded works in @nogc code (mir's
can).
[1]
https://github.com/libmir/mir-algorithm/blob/master/source/mir/test.d
[2] https://code.dlang.org/packages/unit-threaded
More information about the Digitalmars-d
mailing list