c5e5a2cab9
_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. |
||
---|---|---|
.. | ||
.gitignore | ||
README.txt | ||
runtests.c |
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.