mirror of https://github.com/AxioDL/tinyxml2.git
Add unit test for XMLDocument::Clear().
This commit is contained in:
parent
a9d42b0dd3
commit
53ab79afad
|
@ -1072,6 +1072,13 @@ int main( int argc, const char ** argv )
|
||||||
XMLTest( "Set length of incoming data", doc.Error(), false );
|
XMLTest( "Set length of incoming data", doc.Error(), false );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
XMLDocument doc;
|
||||||
|
doc.LoadFile( "resources/dream.xml" );
|
||||||
|
doc.Clear();
|
||||||
|
XMLTest( "Document Clear()'s", doc.NoChildren(), true );
|
||||||
|
}
|
||||||
|
|
||||||
// ----------- Whitespace ------------
|
// ----------- Whitespace ------------
|
||||||
{
|
{
|
||||||
const char* xml = "<element>"
|
const char* xml = "<element>"
|
||||||
|
|
Loading…
Reference in New Issue