mirror of https://github.com/AxioDL/tinyxml2.git
Better tests for empty document
This commit is contained in:
parent
69242c4b9b
commit
588bb8de49
|
@ -869,6 +869,14 @@ int main( int argc, const char ** argv )
|
|||
XMLTest( "Empty document error", XML_ERROR_EMPTY_DOCUMENT, doc.ErrorID() );
|
||||
}
|
||||
|
||||
{
|
||||
// Documents with all whitespaces should return TIXML_XML_ERROR_PARSING_EMPTY, bug 1070717
|
||||
const char* str = " ";
|
||||
XMLDocument doc;
|
||||
doc.Parse( str );
|
||||
XMLTest( "All whitespaces document error", XML_ERROR_EMPTY_DOCUMENT, doc.ErrorID() );
|
||||
}
|
||||
|
||||
{
|
||||
// Low entities
|
||||
XMLDocument doc;
|
||||
|
|
Loading…
Reference in New Issue