Did you know ... | Search Documentation: |
Pack clitable -- test/README.md |
Definition of input/output tests for the clitable
package following the Test Anything Protocol (TAP).
The defined tests can be run using the following command:
swipl -q -g main -t halt -s test.pl
This produces a TAP compatible output like the following:
TAP version 13 1..1 ok 1 - clitable([[a,bb,ccc], [111,22,3]])
The identifier is the tested call with the mentioned input data.
In the file tests.pl
new tests can be specified in the following form:
clitable(Input) -> Expected.