Did you know ... Search Documentation:
Pack clitable -- test/README.md

TAP Input/Output Test Suite

Definition of input/output tests for the clitable package following the Test Anything Protocol (TAP).

Run Tests

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.

Define Tests

In the file tests.pl new tests can be specified in the following form:

clitable(Input) -> Expected.