From a5221869c2fbf036a6758da66cffed1c9cb14c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Ro=C3=9F?= Date: Sat, 11 May 2013 10:22:12 +0200 Subject: [PATCH] Added test for return value of QueryDoubleAttribute(). --- xmltest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/xmltest.cpp b/xmltest.cpp index c8e1b0b..8da81b5 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -496,6 +496,7 @@ int main( int argc, const char ** argv ) XMLTest( "Query attribute: int as double", result, (int)XML_NO_ERROR ); XMLTest( "Query attribute: int as double", (int)dVal, 1 ); result = ele->QueryDoubleAttribute( "attr1", &dVal ); + XMLTest( "Query attribute: double as double", result, (int)XML_NO_ERROR ); XMLTest( "Query attribute: double as double", (int)dVal, 2 ); result = ele->QueryIntAttribute( "attr1", &iVal ); XMLTest( "Query attribute: double as int", result, (int)XML_NO_ERROR );