Re: unit-threaded v0.6.5 - Type-parametrized tests

2016-03-11 Thread Robert burner Schadek via Digitalmars-d-announce
On Friday, 11 March 2016 at 14:26:34 UTC, Atila Neves wrote: Didn't Robert have a QuickCheck-alike as well? Yes, https://github.com/D-Programming-Language/phobos/pull/2995

Re: unit-threaded v0.6.5 - Type-parametrized tests

2016-03-11 Thread Atila Neves via Digitalmars-d-announce
On Friday, 11 March 2016 at 08:06:19 UTC, Jacob Carlborg wrote: On 2016-03-10 12:05, Atila Neves wrote: No, sorry. I haven't needed it yet. Something like this? Yes. @Types!(int, string) void testArray(T)() { import std.container; auto arr = Array!T();

Re: unit-threaded v0.6.5 - Type-parametrized tests

2016-03-11 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-03-10 12:05, Atila Neves wrote: No, sorry. I haven't needed it yet. Something like this? Yes. @Types!(int, string) void testArray(T)() { import std.container; auto arr = Array!T(); arr.empty.shouldBeTrue; arr.insertBack(T.init); arr.empty.shouldBeFalse;

Re: unit-threaded v0.6.5 - Type-parametrized tests

2016-03-10 Thread Atila Neves via Digitalmars-d-announce
On Thursday, 10 March 2016 at 16:06:38 UTC, Meta wrote: On Wednesday, 9 March 2016 at 18:01:49 UTC, Atila Neves wrote: The forum must be sick of hearing from me... :P I'm always excited for a new release of unit-threaded Thanks for the kind words! Atila

Re: unit-threaded v0.6.5 - Type-parametrized tests

2016-03-10 Thread Meta via Digitalmars-d-announce
On Wednesday, 9 March 2016 at 18:01:49 UTC, Atila Neves wrote: The forum must be sick of hearing from me... :P I'm always excited for a new release of unit-threaded

Re: unit-threaded v0.6.5 - Type-parametrized tests

2016-03-10 Thread Atila Neves via Digitalmars-d-announce
On Thursday, 10 March 2016 at 08:09:40 UTC, Jacob Carlborg wrote: On 2016-03-09 19:01, Atila Neves wrote: The forum must be sick of hearing from me... :P For those not in the know, unit-threaded is an advanced unit testing library for D: http://code.dlang.org/packages/unit-threaded The

Re: unit-threaded v0.6.5 - Type-parametrized tests

2016-03-10 Thread Atila Neves via Digitalmars-d-announce
On Thursday, 10 March 2016 at 09:33:39 UTC, Iakh wrote: On Wednesday, 9 March 2016 at 18:01:49 UTC, Atila Neves wrote: @Types!(int, byte) void testInit(T)() { assert(T.init == 0); } Atila It is not clear that this UDA is about unittesting Even when attached to a test function? Atila

Re: unit-threaded v0.6.5 - Type-parametrized tests

2016-03-10 Thread Iakh via Digitalmars-d-announce
On Wednesday, 9 March 2016 at 18:01:49 UTC, Atila Neves wrote: @Types!(int, byte) void testInit(T)() { assert(T.init == 0); } Atila It is not clear that this UDA is about unittesting

Re: unit-threaded v0.6.5 - Type-parametrized tests

2016-03-10 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-03-09 19:01, Atila Neves wrote: The forum must be sick of hearing from me... :P For those not in the know, unit-threaded is an advanced unit testing library for D: http://code.dlang.org/packages/unit-threaded The v0.6.3 release had tests parametrized by value; this v0.6.5 release