소스 검색

Document must be initially empty

Dmitry-Me 11 년 전
부모
커밋
48b5df0b9b
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      xmltest.cpp

+ 3 - 0
xmltest.cpp

@@ -1167,6 +1167,9 @@ int main( int argc, const char ** argv )
 
     {
         XMLDocument doc;
+        XMLTest( "Document is initially empty", doc.NoChildren(), true );
+        doc.Clear();
+        XMLTest( "Empty is empty after Clear()", doc.NoChildren(), true );
         doc.LoadFile( "resources/dream.xml" );
         XMLTest( "Document has something to Clear()", doc.NoChildren(), false );
         doc.Clear();