]> git.saurik.com Git - wxWidgets.git/commitdiff
use wxHAVE_U_ESCAPE to accomodate old compilers
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Mar 2006 17:43:10 +0000 (17:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Mar 2006 17:43:10 +0000 (17:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/textfile/textfiletest.cpp

index e451a87d8390f644cb1cedd1dce4b810c6a8532c..ce8bc49d24ad97ece0e23948dd4a2ee4fc6957be 100644 (file)
@@ -171,9 +171,11 @@ void TextFileTestCase::ReadUTF8()
     CPPUNIT_ASSERT_EQUAL( 2u, f.GetLineCount() );
     CPPUNIT_ASSERT_EQUAL( wxTextFileType_Unix, f.GetLineType(0) );
     CPPUNIT_ASSERT_EQUAL( wxTextFileType_None, f.GetLineType(1) );
+#if wxHAVE_U_ESCAPE
     CPPUNIT_ASSERT_EQUAL( wxString(L"\u041f"), f.GetFirstLine() );
     CPPUNIT_ASSERT_EQUAL( wxString(L"\u0440\u0438\u0432\u0435\u0442"),
                           f.GetLastLine() );
+#endif // wxHAVE_U_ESCAPE
 }
 
 void TextFileTestCase::ReadUTF16()
@@ -189,9 +191,12 @@ void TextFileTestCase::ReadUTF16()
     CPPUNIT_ASSERT_EQUAL( 2u, f.GetLineCount() );
     CPPUNIT_ASSERT_EQUAL( wxTextFileType_Dos, f.GetLineType(0) );
     CPPUNIT_ASSERT_EQUAL( wxTextFileType_None, f.GetLineType(1) );
+
+#if wxHAVE_U_ESCAPE
     CPPUNIT_ASSERT_EQUAL( wxString(L"\u041f"), f.GetFirstLine() );
     CPPUNIT_ASSERT_EQUAL( wxString(L"\u0440\u0438\u0432\u0435\u0442"),
                           f.GetLastLine() );
+#endif // wxHAVE_U_ESCAPE
 }
 
 #endif // wxUSE_UNICODE