Re-enable conversions of wxAny to boolean tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2013-05-15 13:05:53 +00:00
parent 2747a51b24
commit 5181927e6b

View File

@ -383,6 +383,7 @@ void wxAnyTestCase::GetAs()
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);