unit-threaded v0.6.26 - advanced unit testing in D with new features
Nicholas Wilson via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Sat Aug 6 03:34:52 PDT 2016
On Friday, 5 August 2016 at 15:31:34 UTC, Atila Neves wrote:
> https://code.dlang.org/packages/unit-threaded
>
> What's new:
> . Mocking support. Classes, interfaces and structs can be
> mocked (see README.md or examples)
> . Shrinking support for property-based testing, but only for
> integrals and arrays
> . Bug fixes
>
> Enjoy!
>
> Atila
There is a typo in your readme
>int adder(int i, int j) { return i + j; }
>
>@("Test adder") unittest {
> adder(2 + 3).shouldEqual(5);
>}
>
>@("Test adder fails", ShouldFail) unittest {
> adder(2 + 3).shouldEqual(7);
>}
shouldBe (!) adder(2, 3)
More information about the Digitalmars-d-announce
mailing list