private:
CPPUNIT_TEST_SUITE( CrtTestCase );
CPPUNIT_TEST( SetGetEnv );
+#if wxUSE_UNICODE
CPPUNIT_TEST( Strchr );
+#endif // wxUSE_UNICODE
CPPUNIT_TEST( Strcmp );
CPPUNIT_TEST( Strspn );
CPPUNIT_TEST( Strcspn );
CPPUNIT_TEST_SUITE_END();
void SetGetEnv();
+#if wxUSE_UNICODE
void Strchr();
+#endif // wxUSE_UNICODE
void Strcmp();
void Strspn();
void Strcspn();
#undef TESTVAR_NAME
}
+#if wxUSE_UNICODE
void CrtTestCase::Strchr()
{
// test that searching for a wide character in a narrow string simply
CPPUNIT_ASSERT( wxStrchr(wxString::FromUTF8(":-) == \xe2\x98\xba"),
static_cast<wchar_t>(smiley)) );
}
+#endif // wxUSE_UNICODE
void CrtTestCase::Strcmp()
{