Explorar o código

Merge pull request #284 from Dmitry-Me/testDocumentBeforeClearing

Test document had content to clear
Lee Thomason %!s(int64=11) %!d(string=hai) anos
pai
achega
1354ffabb6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      xmltest.cpp

+ 1 - 0
xmltest.cpp

@@ -1168,6 +1168,7 @@ int main( int argc, const char ** argv )
     {
         XMLDocument doc;
         doc.LoadFile( "resources/dream.xml" );
+        XMLTest( "Document has something to Clear()", doc.NoChildren(), false );
         doc.Clear();
         XMLTest( "Document Clear()'s", doc.NoChildren(), true );
     }