Re: Best practices for testing functions that opens files

2014-08-06 Thread simendsjo via Digitalmars-d-learn
On 08/06/2014 01:22 AM, splatterdash wrote: > 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 bette

Re: Best practices for testing functions that opens files

2014-08-05 Thread abanstadya via Digitalmars-d-learn
On Tuesday, 5 August 2014 at 23:22:24 UTC, splatterdash wrote: 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 ther

Best practices for testing functions that opens files

2014-08-05 Thread splatterdash via Digitalmars-d-learn
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 specif