Testing package proposed for Phobos

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 10 14:49:42 PST 2015


On 2/10/2015 2:45 PM, Walter Bright wrote:
> unittest
> {
>      string s = "hello";
>      auto r = InputRange!string(s);
>      r.testInputRange(10);

     import std.range;
     assert(isInputRange!(typeof(r)));

> }


Forgot to add that. Exactly why this needs to be in a standard module!



More information about the Digitalmars-d mailing list