git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43876
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// if the test is run from root directory or its direct subdirectory
CPPUNIT_ASSERT_MESSAGE
(
// if the test is run from root directory or its direct subdirectory
CPPUNIT_ASSERT_MESSAGE
(
- wxString::Format("Normalize(%s) failed", fni.fullname).c_str(),
+ (const char *)wxString::Format(_T("Normalize(%s) failed"), fni.fullname).mb_str(),
fn.Normalize(wxPATH_NORM_ALL, _T("/foo/bar/baz"), fni.format)
);
fn.Normalize(wxPATH_NORM_ALL, _T("/foo/bar/baz"), fni.format)
);
// be sure this normalization does not fail
CPPUNIT_ASSERT_MESSAGE
(
// be sure this normalization does not fail
CPPUNIT_ASSERT_MESSAGE
(
- wxString::Format("Normalize(%s) failed", tests[i].original).c_str(),
+ (const char *)wxString::Format(_T("Normalize(%s) failed"), tests[i].original).mb_str(),
fn.Normalize(tests[i].flags, cwd, wxPATH_UNIX)
);
fn.Normalize(tests[i].flags, cwd, wxPATH_UNIX)
);
CMP3("abcde", "%.5s", wxT("abcdefghi"));
// do the same tests but with Unicode characters:
CMP3("abcde", "%.5s", wxT("abcdefghi"));
// do the same tests but with Unicode characters:
+#if wxUSE_UNICODE && !defined(__VISUALC__) // FIXME: this doesn't compile with VC7
#define ALPHA "\x3B1"
#define BETA "\x3B2"
#define GAMMA "\x3B3"
#define ALPHA "\x3B1"
#define BETA "\x3B2"
#define GAMMA "\x3B3"