mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-14 19:31:23 +00:00
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…
x
Reference in New Issue
Block a user