commit | 48b5df0b9b99bda6204c51479ebddaa6d20092b4 | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Mon Apr 06 18:20:25 2015 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Mon Apr 06 18:20:25 2015 +0300 |
tree | 781d5ae30ca35b7c6b2dbe1b3b21be344c3dc1ff | |
parent | 51b33321bed23bd84b9b0633fd7ca3225cd95582 [diff] [blame] |
Document must be initially empty
diff --git a/xmltest.cpp b/xmltest.cpp index d090863..cde3b80 100644 --- a/xmltest.cpp +++ b/xmltest.cpp
@@ -1167,6 +1167,9 @@ { 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();