Best practices for testing functions that opens files

splatterdash via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 5 16:22:23 PDT 2014


Hi all,

Is there a recommended way to test functions that opens and 
iterates over files? The unittest block seems more suited for 
testing functions whose input and output can be defined in the 
program itself. I'm wondering if there is a better way to test 
functions that open files with specific formats.

Thanks before :).


More information about the Digitalmars-d-learn mailing list