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
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();
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;
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
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
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
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
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
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