#define xml_failure() _xml_failure(__FILE__, __LINE__)
+
+/*
+ * Character & encoding tests.
+ */
+
START_TEST(test_nul_byte)
{
char text[] = "<doc>\0</doc>";
}
END_TEST
-
-START_TEST(test_xmldecl_misplaced)
-{
- char *text =
- "\n"
- "<?xml version='1.0'?>\n"
- "<a>&eee;</a>";
-
- if (!XML_Parse(parser, text, strlen(text), 1)) {
- if (XML_GetErrorCode(parser) != XML_ERROR_MISPLACED_XML_PI)
- xml_failure();
- }
- else {
- fail("expected XML_ERROR_MISPLACED_XML_PI with misplaced XML decl");
- }
-}
-END_TEST
-
START_TEST(test_bom_utf8)
{
/* This test is really just making sure we don't core on a UTF-8 BOM. */
END_TEST
+/*
+ * Attribute tests.
+ */
+
/* Helpers used by the following test; this checks any "attr" and "refs"
* attributes to make sure whitespace has been normalized.
*/
END_TEST
+/*
+ * XML declaration tests.
+ */
+
+START_TEST(test_xmldecl_misplaced)
+{
+ char *text =
+ "\n"
+ "<?xml version='1.0'?>\n"
+ "<a>&eee;</a>";
+
+ if (!XML_Parse(parser, text, strlen(text), 1)) {
+ if (XML_GetErrorCode(parser) != XML_ERROR_MISPLACED_XML_PI)
+ xml_failure();
+ }
+ else {
+ fail("expected XML_ERROR_MISPLACED_XML_PI with misplaced XML decl");
+ }
+}
+END_TEST
+
+
/*
* Namespaces tests.
*/