mirror of https://github.com/AxioDL/tinyxml2.git
Test ErrorID after Parse()
This commit is contained in:
parent
c11a7c5ca0
commit
8d40f7a565
|
@ -1996,10 +1996,11 @@ int main( int argc, const char ** argv )
|
|||
void TestParseError(const char *testString, const char *docStr, XMLError expected_error, int expectedLine)
|
||||
{
|
||||
XMLDocument doc;
|
||||
XMLError err = doc.Parse(docStr);
|
||||
const XMLError parseError = doc.Parse(docStr);
|
||||
|
||||
XMLTest(testString, parseError, doc.ErrorID());
|
||||
XMLTest(testString, true, doc.Error());
|
||||
XMLTest(testString, expected_error, err);
|
||||
XMLTest(testString, expected_error, parseError);
|
||||
XMLTest(testString, expectedLine, doc.GetErrorLineNum());
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue