Testing package proposed for Phobos

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 11 02:58:27 PST 2015


On 2/8/2015 5:41 PM, Walter Bright wrote:
> I propose a std.test.ranges package, which contains templates defining each of
> the range types (InputRange, BiDirectionalRange, etc.). Each accepts an argument
> which is a static array of T, and then implements exactly the range interface
> indicated by its name, nothing more. The range will also have asserts to
> guarantee they are used correctly, i.e. front() cannot be called before empty()
> returns false.

Here's another stab at it:

http://digitalmars.com/sargon/asinputrange.html


More information about the Digitalmars-d mailing list