Discussion:
a1q4
(too old to reply)
E Tham
2011-09-23 23:49:45 UTC
Permalink
Should we test for the existence/readability of all .in .out first
before proceeding to run the program or do we check only the one which
we intend to run in that particular instance or does it not matter?

i.e. check existence/readability of test1.in, test1.out then run the
program with test1.in, compare against test1.out and output the results.
Only then do we check existence/readability of test2.in, test2.out, etc.
Brad Lushman
2011-09-24 00:56:14 UTC
Permalink
Post by E Tham
Should we test for the existence/readability of all .in .out first
before proceeding to run the program or do we check only the one which
we intend to run in that particular instance or does it not matter?
i.e. check existence/readability of test1.in, test1.out then run the
program with test1.in, compare against test1.out and output the results.
Only then do we check existence/readability of test2.in, test2.out, etc.
Either is fine. In test cases that are meant to produce errors, we will not
examine stdout.

Loading...