On Friday, 20 January 2017 at 13:35:40 UTC, Mike Parker wrote:
Jack Stouffer details how unit testing, code review, and code coverage are handled in the development and maintenance of Phobos. Thanks, Jack!



Very informative!

Have you considered adding randomized tests to Phobos? For instance, for the sum() example, you could generate a random array x, say, 100 times and assert:

sum(x) == x[0] + sum(x[1..$]);

which is pretty much the defining property of the summation function (along with sum(a)==a[0] for an array of length 1).

Reply via email to