From: Vadim Zeitlin Date: Tue, 14 May 2013 11:07:15 +0000 (+0000) Subject: Reenable some wxAny tests back. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/32abcfc2aeeed3d2765628ee14ace64393031128 Reenable some wxAny tests back. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/any/anytest.cpp b/tests/any/anytest.cpp index ba745db2ab..f91279f265 100644 --- a/tests/any/anytest.cpp +++ b/tests/any/anytest.cpp @@ -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(15)); +#ifndef wxDONT_TEST res = anyString.GetAs(&f); CPPUNIT_ASSERT(res); CPPUNIT_ASSERT_DOUBLES_EQUAL(f, 15.0, FEQ_DELTA);