Improve test message to avoid duplicate log output

This commit is contained in:
Dmitry-Me
2018-03-23 21:09:13 +03:00
parent 0741941589
commit 6a18a3105c

View File

@@ -1957,7 +1957,7 @@ int main( int argc, const char ** argv )
doc.Parse(xml1);
XMLTest("Test that the second declaration is allowed", false, doc.Error() );
doc.Parse(xml2);
XMLTest("Test that declaration after a child is not allowed", XML_ERROR_PARSING_DECLARATION, doc.ErrorID() );
XMLTest("Test that declaration after self-closed child is not allowed", XML_ERROR_PARSING_DECLARATION, doc.ErrorID() );
doc.Parse(xml3);
XMLTest("Test that declaration after a child is not allowed", XML_ERROR_PARSING_DECLARATION, doc.ErrorID() );
doc.Parse(xml4);