X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c08dd08b3e68a09e8915b1ec30b6309fe80e22dc..ff38d8c1ebb74788dd8c61c88183a31832927347:/tests/filename/filenametest.cpp diff --git a/tests/filename/filenametest.cpp b/tests/filename/filenametest.cpp index fe5667b536..2ce261d716 100644 --- a/tests/filename/filenametest.cpp +++ b/tests/filename/filenametest.cpp @@ -161,7 +161,7 @@ void FileNameTestCase::TestSetPath() CPPUNIT_ASSERT( fn.SameAs(wxFileName(_T("/usr/local/bin/ls"), wxPATH_UNIX)) ); } -wxString wxGetRealFile(wxString szFile) +wxString wxTestStripExtension(wxString szFile) { wxStripExtension(szFile); return szFile; @@ -170,11 +170,11 @@ wxString wxGetRealFile(wxString szFile) void FileNameTestCase::TestStrip() { //test a crash - CPPUNIT_ASSERT( wxGetRealFile( _T("") ) == _T("") ); + CPPUNIT_ASSERT( wxTestStripExtension( _T("") ) == _T("") ); //others - CPPUNIT_ASSERT( wxGetRealFile( _T(".") ) == _T("") ); - CPPUNIT_ASSERT( wxGetRealFile( _T(".wav") ) == _T("") ); - CPPUNIT_ASSERT( wxGetRealFile( _T("good.wav") ) == _T("good") ); - CPPUNIT_ASSERT( wxGetRealFile( _T("good.wav.wav") ) == _T("good.wav") ); -} \ No newline at end of file + CPPUNIT_ASSERT( wxTestStripExtension( _T(".") ) == _T("") ); + CPPUNIT_ASSERT( wxTestStripExtension( _T(".wav") ) == _T("") ); + CPPUNIT_ASSERT( wxTestStripExtension( _T("good.wav") ) == _T("good") ); + CPPUNIT_ASSERT( wxTestStripExtension( _T("good.wav.wav") ) == _T("good.wav") ); +}