Fails to use testFilename in unittest

biocyberman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu May 18 07:01:13 PDT 2017


On Thursday, 18 May 2017 at 10:05:41 UTC, Jonathan M Davis wrote:
> On Thursday, May 18, 2017 09:56:36 biocyberman via 
> Digitalmars-d-learn wrote:
>> [...]
>
> My point is that it's a private function for testing std.stdio 
> and not intended to be part of the public API or be used by 
> anyone else (it's not even used anywhere else in Phobos). None 
> of the functions in Phobos that do that sort of thing are in 
> the public API. You can copy-paste testFilename (and 
> std.file.deleteme, since it uses that) into your own code and 
> use them if you like, but the ones in Phobos are just there for 
> Phobos. The only unit testing-specific functionality that 
> Phobos provides beyond what the language itself has is in 
> std.exception with functions such as assertThrown.
>
> - Jonathan M Davis

Understood. I copied the code. Thanks


More information about the Digitalmars-d-learn mailing list