Merge pull request #613 from Dmitry-Me/testResultOfSetError

Test SetError() has effect
This commit is contained in:
Lee Thomason 2017-08-30 10:42:50 -07:00 committed by GitHub
commit dbf18add4c
1 changed files with 3 additions and 1 deletions

View File

@ -1925,7 +1925,9 @@ int main( int argc, const char ** argv )
{
XMLDocument doc;
for( int i = 0; i < XML_ERROR_COUNT; i++ ) {
doc.SetError( (XMLError)i, 0, 0, 0 );
const XMLError error = static_cast<XMLError>(i);
doc.SetError( error, 0, 0, 0 );
XMLTest( "ErrorID() after SetError()", error, doc.ErrorID() );
doc.ErrorName();
}
}