Re: unit-threaded v0.8.0

2019-02-01 Thread jmh530 via Digitalmars-d-announce
On Friday, 1 February 2019 at 12:51:18 UTC, Atila Neves wrote: [snip] I appreciate the reply. Thanks.

Re: unit-threaded v0.8.0

2019-02-01 Thread Atila Neves via Digitalmars-d-announce
On Thursday, 31 January 2019 at 16:01:33 UTC, jmh530 wrote: On Thursday, 31 January 2019 at 14:42:43 UTC, Atila Neves wrote: [snip] I've never had a need to use complicated values, so I haven't coded that. If presented with an example, I think there's a high chance I'd consider it an

Re: unit-threaded v0.8.0

2019-01-31 Thread jmh530 via Digitalmars-d-announce
On Thursday, 31 January 2019 at 14:42:43 UTC, Atila Neves wrote: [snip] I've never had a need to use complicated values, so I haven't coded that. If presented with an example, I think there's a high chance I'd consider it an anti-pattern. I was thinking about something like what is in one

Re: unit-threaded v0.8.0

2019-01-31 Thread Atila Neves via Digitalmars-d-announce
On Thursday, 31 January 2019 at 15:03:26 UTC, Colin wrote: 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

Re: unit-threaded v0.8.0

2019-01-31 Thread Colin via Digitalmars-d-announce
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

Re: unit-threaded v0.8.0

2019-01-31 Thread Atila Neves via Digitalmars-d-announce
On Wednesday, 30 January 2019 at 14:55:37 UTC, jmh530 wrote: On Wednesday, 30 January 2019 at 14:27:25 UTC, Atila Neves wrote: [snip] -- @Types!(ubyte, byte) @Types!(int, uint, float) @UnitTest void fun(T0, T1)() { static assert(T0.sizeof == 1); static assert(T1.sizeof

Re: unit-threaded v0.8.0

2019-01-31 Thread Petar via Digitalmars-d-announce
On Wednesday, 30 January 2019 at 14:55:37 UTC, jmh530 wrote: Also, there is an example in the readme on @Values of @Values(1, 2, 3) unittest { assert(getValue!int % 2 == 0); } What if it's not so easy to create the values? I suppose you could pass the parameters in @Values to some other

Re: unit-threaded v0.8.0

2019-01-30 Thread jmh530 via Digitalmars-d-announce
On Wednesday, 30 January 2019 at 14:27:25 UTC, Atila Neves wrote: [snip] -- @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

unit-threaded v0.8.0

2019-01-30 Thread Atila Neves via Digitalmars-d-announce
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)