7.9 Test Files

Test files are used to check that GAP produces correct results in certain computations. A selection of test files for the library can be found in the tst directory of the GAP distribution.

  • ReadTest( name-file ) O

    reads a test file. A test file starts with a line

    gap> START_TEST("arbitrary identifier string");
    

    (Note that the gap> prompt is part of the line!) It continues by lines of GAP input and corresponding output. The input lines again start with the gap> prompt (or the > prompt if commands exceed one line). The output is exactly as would result from typing in the input interactively to a GAP session (on a screen with 80 characters per line).

    The test file stops with a line

    gap> STOP_TEST( "filename", 10000 );
    

    Here the string "filename" should give the name of the test file. The number is a proportionality factor that is used to output a ``GAPstone'' speed ranking after the file has been completely processed. For the files provided with the distribution this scaling is roughly equalized to yield the same numbers as produced by combinat.tst.

    [Top] [Previous] [Up] [Next] [Index]

    GAP 4 manual
    February 2000