mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-06-06 14:43:46 +00:00
Merge pull request #623 from Dmitry-Me/testErrorName
Test ErrorName() returns valid string after SetError()
This commit is contained in:
commit
3a37e64113
@ -1956,7 +1956,9 @@ int main( int argc, const char ** argv )
|
|||||||
const XMLError error = static_cast<XMLError>(i);
|
const XMLError error = static_cast<XMLError>(i);
|
||||||
doc.SetError( error, 0, 0, 0 );
|
doc.SetError( error, 0, 0, 0 );
|
||||||
XMLTest( "ErrorID() after SetError()", error, doc.ErrorID() );
|
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…
x
Reference in New Issue
Block a user