From 48b5df0b9b99bda6204c51479ebddaa6d20092b4 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 6 Apr 2015 18:20:25 +0300 Subject: [PATCH] Document must be initially empty --- xmltest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xmltest.cpp b/xmltest.cpp index d090863..cde3b80 100644 --- a/xmltest.cpp +++ b/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();