Tempfiles in unittests

Magnus Lie Hetland magnus at hetland.org
Sun Mar 11 05:33:34 PDT 2012


On 2012-03-10 17:10:52 +0000, Jonathan M Davis said:

>> Otherwise, this wouldn't have been a problem :)
> 
> Then you'll probably have to write a wrapper function which just uses byLine
> and join to grab the string line by line and then put it back together again.

Indeed. Not a problem.

Just surprised me that there wasn't a standard way of writing 
file-related unit tests :)

-- 
Magnus Lie Hetland
http://hetland.org



More information about the Digitalmars-d-learn mailing list