cocoa doesn't need system framework - string conversion for cocoa - focus for cocoa - a bit of change for string unit tests for new functionality
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -181,11 +181,13 @@ void StringTestCase::ConstructorsWithConversion()
|
||||
void StringTestCase::Conversion()
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
wxString szTheString(wxT("TheString"));
|
||||
szTheString.insert(3, 1, '\0');
|
||||
wxString szTheString(L"The\0String", wxConvLibc, 10);
|
||||
wxCharBuffer theBuffer = szTheString.mb_str();
|
||||
|
||||
CPPUNIT_ASSERT( memcmp(theBuffer.data(), "The\0String", 11) == 0 );
|
||||
|
||||
wxString szTheString2("The\0String", wxConvLocal, 10);
|
||||
CPPUNIT_ASSERT( wxMemcmp(szTheString2.c_str(), L"The\0String", 11) == 0 );
|
||||
#else
|
||||
# if wxUSE_WCHAR_T
|
||||
wxString szTheString(wxT("TheString"));
|
||||
|
Reference in New Issue
Block a user