(IUCr) Syntax test suite for CIF

Syntax test suite for CIF

Here is a small suite of test files conforming (or not) to STAR/CIF syntax rules and designed as an aid to parser development. The test files are listed below. ciftest0 through 5 and 11 are syntactically valid; ciftest6 through 10 contain various common errors. Each file has a *.result.canon file that contains the output from a vcif validation run on that file. There is also a simple Unix shell script to run vcif on each file and compare the output with the canonical file as distributed (allows you to test your local vcif!).

Documentation and commentary are in the test files and in the vcif output.

For convenience, the file test.tar contains the test and output files and driver script in a Unix tar archive.

Additions to this suite are welcome from developers.

ciftest0  Purpose: null file
ciftest1  Purpose: a file containing only a CIF comment line
ciftest2  Purpose: a CIF containing only a null data block
ciftest3  Purpose: a minimal CIF with content
ciftest4  Purpose: simple valid file conforming to CIF syntax
ciftest5  Purpose: valid STAR/CIF file with potential traps for lazy parsers
ciftest6  Purpose: error CIF: lacks initial data statement; other data_ faults
ciftest7  Purpose: incorrectly terminated character strings - a common problem
ciftest8  Purpose: wrong line and dataname lengths - valid STAR, broken CIF
ciftest9  Purpose: things wrong with loops
ciftest10 Purpose: non-printing characters
ciftest11 Purpose: line endings - should parse OK

Brian McMahon
10 May 2000
      Name                    Last modified       Size  Description

[DIR] Parent Directory 22-Jul-2002 13:06 - [   ] ciftest0 10-May-2000 13:08 0k [   ] ciftest0.result.canon 10-May-2000 13:08 1k [   ] ciftest1 10-May-2000 13:08 1k [   ] ciftest1.result.canon 10-May-2000 13:08 1k [   ] ciftest10 10-May-2000 13:08 1k [   ] ciftest10.result.canon 10-May-2000 13:08 1k [   ] ciftest11 10-May-2000 13:08 1k [   ] ciftest11.result.canon 10-May-2000 13:08 0k [   ] ciftest2 10-May-2000 13:08 1k [   ] ciftest2.result.canon 10-May-2000 13:08 1k [   ] ciftest3 10-May-2000 13:08 1k [   ] ciftest3.result.canon 10-May-2000 13:08 0k [   ] ciftest4 10-May-2000 13:08 1k [   ] ciftest4.result.canon 10-May-2000 13:08 0k [   ] ciftest5 10-May-2000 13:08 3k [   ] ciftest5.result.canon 10-May-2000 13:08 0k [   ] ciftest6 10-May-2000 13:08 1k [   ] ciftest6.result.canon 10-May-2000 13:08 1k [   ] ciftest7 10-May-2000 13:08 1k [   ] ciftest7.result.canon 10-May-2000 13:08 1k [   ] ciftest8 10-May-2000 13:08 1k [   ] ciftest8.result.canon 10-May-2000 13:08 1k [   ] ciftest9 10-May-2000 13:08 1k [   ] ciftest9.result.canon 10-May-2000 13:08 1k [   ] runtests 10-May-2000 13:08 1k [   ] test.tar 10-May-2000 13:08 32k

Apache/1.3.39 Server at journals.iucr.org Port 80