mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #613 from Dmitry-Me/testResultOfSetError
Test SetError() has effect
This commit is contained in:
commit
dbf18add4c
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue