mirror of https://github.com/AxioDL/tinyxml2.git
Fix up xmltest.cpp
Fixed coding style in XMLTest(), and removed unused variable in testcase.
This commit is contained in:
parent
9afd1d0ceb
commit
d608c561e0
|
@ -35,7 +35,8 @@ bool XMLTest (const char* testString, const char* expected, const char* found, b
|
||||||
pass = true;
|
pass = true;
|
||||||
else if ( !expected || !found )
|
else if ( !expected || !found )
|
||||||
pass = false;
|
pass = false;
|
||||||
else pass = !strcmp( expected, found );
|
else
|
||||||
|
pass = !strcmp( expected, found );
|
||||||
if ( pass )
|
if ( pass )
|
||||||
printf ("[pass]");
|
printf ("[pass]");
|
||||||
else
|
else
|
||||||
|
@ -1472,7 +1473,6 @@ int main( int argc, const char ** argv )
|
||||||
"<first />"
|
"<first />"
|
||||||
"<second />";
|
"<second />";
|
||||||
XMLDocument* doc = new XMLDocument();
|
XMLDocument* doc = new XMLDocument();
|
||||||
const char* value;
|
|
||||||
XMLTest( "XMLDocument::Value() fires assert?", NULL, doc->Value() );
|
XMLTest( "XMLDocument::Value() fires assert?", NULL, doc->Value() );
|
||||||
doc->Parse( validXml );
|
doc->Parse( validXml );
|
||||||
XMLTest( "XMLDocument::Value() fires assert?", NULL, doc->Value() );
|
XMLTest( "XMLDocument::Value() fires assert?", NULL, doc->Value() );
|
||||||
|
|
Loading…
Reference in New Issue