+
+
+ // test using Unicode strings together with char* strings (this must work
+ // in ANSI mode as well, of course):
+ wxString s5("ascii");
+ CPPUNIT_ASSERT( s5 == "ascii" );
+
+ s5 += " value";
+
+ CPPUNIT_ASSERT( strcmp(s5.mb_str(), "ascii value") == 0 );
+ CPPUNIT_ASSERT( s5 == "ascii value" );
+ CPPUNIT_ASSERT( s5 != "SomethingElse" );
+}
+
+void UnicodeTestCase::ConversionEmpty()
+{
+ size_t len;
+
+#if wxUSE_UNICODE
+ wxCharBuffer buf = wxConvLibc.cWC2MB(L"", 0, &len);
+#else // !wxUSE_UNICODE
+ wxWCharBuffer wbuf = wxConvLibc.cMB2WC("", 0, &len);
+#endif // wxUSE_UNICODE/!wxUSE_UNICODE
+
+ CPPUNIT_ASSERT(len == 0);