瀏覽代碼

Added test for return value of QueryDoubleAttribute().

Thomas Roß 13 年之前
父節點
當前提交
a5221869c2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      xmltest.cpp

+ 1 - 0
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 );