commit | dbf18add4cf7c20a5d213526ba9259935788a7c7 | [log] [tgz] |
---|---|---|
author | Lee Thomason <leethomason@gmail.com> | Wed Aug 30 10:42:50 2017 -0700 |
committer | GitHub <noreply@github.com> | Wed Aug 30 10:42:50 2017 -0700 |
tree | cd7c02ca3a327352578996cd0cdc56286204a1c6 | |
parent | da24c3b2211e2d4aba73073ab3cdb183785e4b46 [diff] | |
parent | d3f6c6361cab80174b470b7a50423c1d729590ab [diff] |
Merge pull request #613 from Dmitry-Me/testResultOfSetError Test SetError() has effect
diff --git a/xmltest.cpp b/xmltest.cpp index 1c220ba..59724f7 100644 --- a/xmltest.cpp +++ b/xmltest.cpp
@@ -1925,7 +1925,9 @@ { 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(); } }