]> git.saurik.com Git - wxWidgets.git/commitdiff
Reenable some wxAny tests back.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 14 May 2013 11:07:15 +0000 (11:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 14 May 2013 11:07:15 +0000 (11:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/any/anytest.cpp

index ba745db2abc34da03c7a7fa3eee8ef083595db32..f91279f26508b3bf59a2db7e6e51939bf89fde5a 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,6 +379,7 @@ 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);