NAME

s2p.t - test suite for s2p/psed

NOTES

The general idea is to

(a) run psed with a sed script and input data to obtain some output
(b) run s2p with a sed script creating a Perl program and then run the
    Perl program with the input data, again producing output

Both final outputs should be identical to the expected output.

A $testcase{<name>} contains entries (after the comment ### <name> ###):

- script: the sed script
- input:  the key of the input data, stored in $input{<input>}
- expect: the expected output
- datfil: an additional file [ <path>, <data> ] (if required)

Temporary files are created in the working directory (embedding $$ in the name), and removed after the test.

Except for bin2dec (which indeed converts binary to decimal) none of the sed scripts is doing something useful.

Author: Wolfgang Laun.