add test case

This commit is contained in:
Lee Thomason
2020-07-02 15:23:00 -07:00
parent d34d0ef5e0
commit 4637965335
2 changed files with 5 additions and 1 deletions

View File

@@ -632,6 +632,10 @@ int main( int argc, const char ** argv )
ele->SetAttribute( "int", 1 );
ele->SetAttribute( "double", -1.0 );
const char* answer = 0;
ele->QueryAttribute("str", &answer);
XMLTest("Query char attribute", "strValue", answer);
const char* cStr = ele->Attribute( "str" );
{
XMLError queryResult = ele->QueryIntAttribute( "int", &iVal );