std.experimental.randomized_unittest_benchmark is ready for comments

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 19 12:03:55 PDT 2016


On Sunday, 19 June 2016 at 18:51:09 UTC, Jack Stouffer wrote:
> I would like to try this out on my date parsing library, but I 
> don't see a way to generate strings of a specific format.

take a look at 
https://github.com/dlang/phobos/pull/2995/files#diff-1a5f159e09980950bb9931ac674cbf40R358

just create a new Gen struct that generates what you want and 
make it a parameter to a function. And you should be done.


More information about the Digitalmars-d mailing list