libexpat/expat/tests
Fred L. Drake, Jr. c5e5a2cab9 Test support enhancements:
_xml_failure():  Clean up the output message so the first line doesn't
    wrap in the typical case.

CharData typedef:  If count is less than 0, consider it "unset".  This
    is used in the new support to check attribute values.

accumulate_characters():  Handle storage->count < 0.  Allow XML_Char
    to be more than one byte.

accumulate_attribute():  New function: store the value of the first
    attribute encountered in parsing.  This needs the concept of a
    CharData that is unset to allow capturing a value that is an empty
    string.

check_characters():  Handle storage->count < 0.  Allow XML_Char to be
    more than one byte.

run_character_check():  Create a local parser so that both
    run_character_check() and run_attribute_check() can be used in a
    single test function.

run_attribute_check():  New function: check that the value of the
    first attribute in a document matches the expected value.
2002-04-22 18:46:00 +00:00
..
.gitignore * Switch to a single, top-level Makefile (simplification, consistency) 2001-12-07 10:19:31 +00:00
README.txt Note that the tests need check 0.8 to work. 2001-11-13 05:04:51 +00:00
runtests.c Test support enhancements: 2002-04-22 18:46:00 +00:00

This directory contains the (fledgling) test suite for Expat.  The
tests provide general unit testing and regression coverage.  The tests
are not expected to be useful examples of Expat usage; see the
examples/ directory for that.

The Expat tests use the "Check" unit testing framework for C.  More
information on Check can be found at:

	http://check.sourceforge.net/

Check 0.8 must be installed before the unit tests can be compiled & run.

Since both Check and this test suite are young, it can all change in a
later version.