git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46445
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+// ----------------------------------------------------------------------------
+// constants
+// ----------------------------------------------------------------------------
+
+static const char *strMB = "hello, world";
+static const wchar_t *strWC = L"hello, world";
+static const wxString strWX("hello, world");
+
// ----------------------------------------------------------------------------
// test class
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// test class
// ----------------------------------------------------------------------------
void CrtTestCase::Strspn()
{
void CrtTestCase::Strspn()
{
- const char *strMB = "hello, world";
- const char *strWC = "hello, world";
- const wxString strWX("hello, world");
-
CPPUNIT_ASSERT( wxStrspn(strMB, "xyz") == 0 );
CPPUNIT_ASSERT( wxStrspn(strWC, "xyz") == 0 );
CPPUNIT_ASSERT( wxStrspn(strWX, "xyz") == 0 );
CPPUNIT_ASSERT( wxStrspn(strMB, "xyz") == 0 );
CPPUNIT_ASSERT( wxStrspn(strWC, "xyz") == 0 );
CPPUNIT_ASSERT( wxStrspn(strWX, "xyz") == 0 );
void CrtTestCase::Strcspn()
{
void CrtTestCase::Strcspn()
{
- const char *strMB = "hello, world";
- const char *strWC = "hello, world";
- const wxString strWX("hello, world");
-
CPPUNIT_ASSERT( wxStrcspn(strMB, strWX) == 0 );
CPPUNIT_ASSERT( wxStrcspn(strWC, strMB) == 0 );
CPPUNIT_ASSERT( wxStrcspn(strWX, strWC) == 0 );
CPPUNIT_ASSERT( wxStrcspn(strMB, strWX) == 0 );
CPPUNIT_ASSERT( wxStrcspn(strWC, strMB) == 0 );
CPPUNIT_ASSERT( wxStrcspn(strWX, strWC) == 0 );
CPPUNIT_ASSERT( wxStrcspn(strWC, "xy") == strWX.length() );
CPPUNIT_ASSERT( wxStrcspn(strWX, "xy") == strWX.length() );
}
CPPUNIT_ASSERT( wxStrcspn(strWC, "xy") == strWX.length() );
CPPUNIT_ASSERT( wxStrcspn(strWX, "xy") == strWX.length() );
}