logo       

[SPOILER] Easy QOTW 2005-1 - Test Suite: msg#00035

lang.perl.qotw.discuss

Subject: [SPOILER] Easy QOTW 2005-1 - Test Suite

Hi all!

Attached is a relatively comprehensive test-suite to test the script for
correctness. It includes all the tests that the quiz author gave as well as
some of my own.

To use it:

1. cd to the Testing sub-dir.

2. run perl test.pl [mypath] where mypath is the path to the executable (it
must be executable by the system) which implements the quiz.

3. test.pl exits by invoking diff -u -r. So if there are differences they will
be displayed on screen. Plus, the exit code of the program will be 0 if
everything's fine and non-zero otherwise.

To add more tests:

1. Add a file to the "in" sub-dir of Testing with valid input.

2. Add the expected and correct output to a file with the same name in the
"expected" sub-dir of Testing.

Regards,

Shlomi Fish

---------------------------------------------------------------------
Shlomi Fish shlomif-ik1l9ssToec+JF/nGntIXQ@xxxxxxxxxxxxxxxx
Homepage: http://www.shlomifish.org/

Knuth is not God! It took him two days to build the Roman Empire.

Attachment: qotw-2005-1-test-suite.tar.gz
Description: application/tgz

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise