mirror of https://github.com/AxioDL/tinyxml2.git
Test ErrorName() returns valid string after SetError()
This commit is contained in:
parent
bdad8d73a3
commit
47845b699a
|
@ -1928,7 +1928,9 @@ int main( int argc, const char ** argv )
|
|||
const XMLError error = static_cast<XMLError>(i);
|
||||
doc.SetError( error, 0, 0, 0 );
|
||||
XMLTest( "ErrorID() after SetError()", error, doc.ErrorID() );
|
||||
doc.ErrorName();
|
||||
const char* name = doc.ErrorName();
|
||||
XMLTest( "ErrorName() after SetError()", true, name != 0 );
|
||||
XMLTest( "ErrorName() after SetError()", true, strlen(name) > 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue