unit-threaded v0.8.0

Colin grogan.colin at gmail.com
Thu Jan 31 15:03:26 UTC 2019


On Wednesday, 30 January 2019 at 14:27:25 UTC, Atila Neves wrote:
> New release of unit-threaded, the advanced test framework for D:
>
> https://code.dlang.org/packages/unit-threaded
>
> Besides bug fixes, the main difference is now cartesian product 
> of types works as it did for values when it comes to 
> parameterized tests:
>
> ------------------
> @Types!(ubyte, byte)
> @Types!(int, uint, float)
> @UnitTest
> void fun(T0, T1)() {
>     static assert(T0.sizeof == 1);
>     static assert(T1.sizeof == 4);
> }
> ------------------
>
> This now generates 6 tests, one for each combination of types, 
> similarly to what already worked with the @Values UDA.

Thanks for this library. One of the more useful on code.dlang.org!


More information about the Digitalmars-d-announce mailing list