Explorar o código

Merge pull request #668 from Dmitry-Me/improveDeclarationTestMessage

Improve test message to avoid duplicate log output
Lee Thomason %!s(int64=8) %!d(string=hai) anos
pai
achega
e59e3c3460
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      xmltest.cpp

+ 1 - 1
xmltest.cpp

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