// 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)
);
// 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)
);
CMP3("abcde", "%.5s", wxT("abcdefghi"));
// do the same tests but with Unicode characters:
-#if wxUSE_UNICODE
+#if wxUSE_UNICODE && !defined(__VISUALC__) // FIXME: this doesn't compile with VC7
#define ALPHA "\x3B1"
#define BETA "\x3B2"
#define GAMMA "\x3B3"