Whitespaces, tabs and fix to the lack of empty line at end.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -189,7 +189,7 @@ void StringTestCase::Conversion()
|
|||||||
wxString szTheString2("The\0String", wxConvLocal, 10);
|
wxString szTheString2("The\0String", wxConvLocal, 10);
|
||||||
CPPUNIT_ASSERT( wxMemcmp(szTheString2.c_str(), L"The\0String", 11) == 0 );
|
CPPUNIT_ASSERT( wxMemcmp(szTheString2.c_str(), L"The\0String", 11) == 0 );
|
||||||
#else
|
#else
|
||||||
# if wxUSE_WCHAR_T
|
# if wxUSE_WCHAR_T
|
||||||
wxString szTheString(wxT("TheString"));
|
wxString szTheString(wxT("TheString"));
|
||||||
szTheString.insert(3, 1, '\0');
|
szTheString.insert(3, 1, '\0');
|
||||||
wxWCharBuffer theBuffer = szTheString.wc_str(wxConvLibc);
|
wxWCharBuffer theBuffer = szTheString.wc_str(wxConvLibc);
|
||||||
@@ -201,7 +201,7 @@ void StringTestCase::Conversion()
|
|||||||
wxWCharBuffer theLocalBuffer = szLocalTheString.wc_str(wxConvLocal);
|
wxWCharBuffer theLocalBuffer = szLocalTheString.wc_str(wxConvLocal);
|
||||||
|
|
||||||
CPPUNIT_ASSERT( memcmp(theLocalBuffer.data(), L"The\0String", 11 * sizeof(wchar_t)) == 0 );
|
CPPUNIT_ASSERT( memcmp(theLocalBuffer.data(), L"The\0String", 11 * sizeof(wchar_t)) == 0 );
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -452,3 +452,4 @@ void StringTestCase::CompareNoCase()
|
|||||||
CPPUNIT_CNCNEQ_ASSERT( s1, neq2 );
|
CPPUNIT_CNCNEQ_ASSERT( s1, neq2 );
|
||||||
CPPUNIT_CNCNEQ_ASSERT( s1, neq3 );
|
CPPUNIT_CNCNEQ_ASSERT( s1, neq3 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user