diff options
author | Lee Thomason <leethomason@gmail.com> | 2020-07-02 15:23:00 -0700 |
---|---|---|
committer | Lee Thomason <leethomason@gmail.com> | 2020-07-02 15:23:00 -0700 |
commit | 4637965335196754e0dd7398cf11d73a80b9dc33 (patch) | |
tree | 458caa70ffbd034912d907a0acffa5bf1016ef04 /xmltest.cpp | |
parent | d34d0ef5e0c56e2c933ec3912244a9e22e7b566b (diff) | |
download | tinyxml2-4637965335196754e0dd7398cf11d73a80b9dc33.tar.gz |
add test case
Diffstat (limited to 'xmltest.cpp')
-rwxr-xr-x | xmltest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmltest.cpp b/xmltest.cpp index 77cd6d7..4937dcb 100755 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -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 );
|