]> git.saurik.com Git - wxWidgets.git/commitdiff
removed wxTextFile test case, what was it doing here?
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Mar 2006 17:07:25 +0000 (17:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 31 Mar 2006 17:07:25 +0000 (17:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/unicode.cpp

index 1b49421a5ce15d4b07a6bd590db41068ed1ef8aa..5e17bd3a74166a977ac982be7fb18cadda48e047 100644 (file)
 #endif
 
 #ifndef WX_PRECOMP
-    #include "wx/wx.h"
 #endif // WX_PRECOMP
 
-#include "wx/textfile.h"
-
 // ----------------------------------------------------------------------------
 // test class
 // ----------------------------------------------------------------------------
@@ -35,11 +32,9 @@ public:
 private:
     CPPUNIT_TEST_SUITE( UnicodeTestCase );
         CPPUNIT_TEST( ToFromAscii );
-        CPPUNIT_TEST( TextFileRead );
     CPPUNIT_TEST_SUITE_END();
 
     void ToFromAscii();
-    void TextFileRead();
 
     DECLARE_NO_COPY_CLASS(UnicodeTestCase)
 };
@@ -68,29 +63,3 @@ void UnicodeTestCase::ToFromAscii()
     TEST_TO_FROM_ASCII( "additional \" special \t test \\ component \n :-)" );
 }
 
-void UnicodeTestCase::TextFileRead()
-{
-    wxTextFile file;
-    bool file_opened = file.Open(_T("testdata.fc"), wxConvLocal);
-
-    CPPUNIT_ASSERT( file_opened );
-
-    static const wxChar *lines[6] = { 
-        _T("# this is the test data file for wxFileConfig tests"),
-        _T("value1=one"),
-        _T("# a comment here"),
-        _T("value2=two"),
-        _T("value\\ with\\ spaces\\ inside\\ it=nothing special"),
-        _T("path=$PATH")
-    };
-
-    if( file_opened )
-    {
-        const size_t count = file.GetLineCount();
-        CPPUNIT_ASSERT( count == 6 );
-        for ( size_t n = 0; n < count; n++ )
-        {
-            CPPUNIT_ASSERT( wxStrcmp( file[n].c_str() , lines[n] ) == 0 );
-        }
-    }
-}