]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/any/anytest.cpp
Fix memory leak in wxXmlNode::operator=().
[wxWidgets.git] / tests / any / anytest.cpp
index ba745db2abc34da03c7a7fa3eee8ef083595db32..5c5c9e16ee9ca2c93529577e799a7370d82da453 100644 (file)
@@ -369,7 +369,6 @@ void wxAnyTestCase::GetAs()
 #endif // !wxDONT_TEST
     CPPUNIT_ASSERT(!m_anyStringString1.GetAs(&b));
 
-#ifndef wxDONT_TEST
     // Let's test some other conversions from string that should work.
     wxAny anyString;
 
@@ -380,9 +379,11 @@ void wxAnyTestCase::GetAs()
     res = anyString.GetAs(&ul);
     CPPUNIT_ASSERT(res);
     CPPUNIT_ASSERT_EQUAL(ul, static_cast<unsigned long>(15));
+#ifndef wxDONT_TEST
     res = anyString.GetAs(&f);
     CPPUNIT_ASSERT(res);
     CPPUNIT_ASSERT_DOUBLES_EQUAL(f, 15.0, FEQ_DELTA);
+#endif // !wxDONT_TEST
     anyString = "TRUE";
     res = anyString.GetAs(&b);
     CPPUNIT_ASSERT(res);
@@ -392,6 +393,7 @@ void wxAnyTestCase::GetAs()
     CPPUNIT_ASSERT(res);
     CPPUNIT_ASSERT(b == false);
 
+#ifndef wxDONT_TEST
     // Conversions from bool type
     res = m_anyBool1.GetAs(&l);
     CPPUNIT_ASSERT(res);