unit-threaded v0.8.0

Atila Neves atila.neves at gmail.com
Wed Jan 30 14:27:25 UTC 2019


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.


More information about the Digitalmars-d-announce mailing list