]> git.saurik.com Git - wxWidgets.git/commitdiff
Reenable m_anyBool1 tests in wxAny test case too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 May 2013 20:02:01 +0000 (20:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 May 2013 20:02:01 +0000 (20:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/any/anytest.cpp

index 5c5c9e16ee9ca2c93529577e799a7370d82da453..c5ee05de2aeb01f837e800542dc6cbe699634ad8 100644 (file)
@@ -393,7 +393,6 @@ void wxAnyTestCase::GetAs()
     CPPUNIT_ASSERT(res);
     CPPUNIT_ASSERT(b == false);
 
     CPPUNIT_ASSERT(res);
     CPPUNIT_ASSERT(b == false);
 
-#ifndef wxDONT_TEST
     // Conversions from bool type
     res = m_anyBool1.GetAs(&l);
     CPPUNIT_ASSERT(res);
     // Conversions from bool type
     res = m_anyBool1.GetAs(&l);
     CPPUNIT_ASSERT(res);
@@ -406,6 +405,7 @@ void wxAnyTestCase::GetAs()
     CPPUNIT_ASSERT(s == "true");
     CPPUNIT_ASSERT(!m_anyBool1.GetAs(&f));
 
     CPPUNIT_ASSERT(s == "true");
     CPPUNIT_ASSERT(!m_anyBool1.GetAs(&f));
 
+#ifndef wxDONT_TEST
     // Conversions from floating point type
     res = m_anyDoubleDouble1.GetAs(&l);
     CPPUNIT_ASSERT(res);
     // Conversions from floating point type
     res = m_anyDoubleDouble1.GetAs(&l);
     CPPUNIT_ASSERT(res);