Description

A library for automatic randomized testing.

Package Information

Version0.1.0 (2014-Oct-14)
Repository https://github.com/MartinNowak/qcheck
LicenseMIT
CopyrightCopyright © 2010-, Martin Nowak
AuthorsMartin Nowak
Registered byMartin Nowak
Dependencies none

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

qcheck Build Status

A library for automatic randomized testing.

==== Usage

unittest
{
    import qcheck;

    static void testSort(int[] arr)
    {
        import std.algorithm;
        auto res = sort(arr);
        foreach (i; 1 .. res.length)
            assert(res[i-1] <= res[i]);
    }

    qcheck!testSort();
}

Available versions

0.1.0 ~master ~testBeta