better name - add newline to end of file for dumber compilers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -161,7 +161,7 @@ void FileNameTestCase::TestSetPath()
|
|||||||
CPPUNIT_ASSERT( fn.SameAs(wxFileName(_T("/usr/local/bin/ls"), wxPATH_UNIX)) );
|
CPPUNIT_ASSERT( fn.SameAs(wxFileName(_T("/usr/local/bin/ls"), wxPATH_UNIX)) );
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString wxGetRealFile(wxString szFile)
|
wxString wxTestStripExtension(wxString szFile)
|
||||||
{
|
{
|
||||||
wxStripExtension(szFile);
|
wxStripExtension(szFile);
|
||||||
return szFile;
|
return szFile;
|
||||||
@@ -170,11 +170,11 @@ wxString wxGetRealFile(wxString szFile)
|
|||||||
void FileNameTestCase::TestStrip()
|
void FileNameTestCase::TestStrip()
|
||||||
{
|
{
|
||||||
//test a crash
|
//test a crash
|
||||||
CPPUNIT_ASSERT( wxGetRealFile( _T("") ) == _T("") );
|
CPPUNIT_ASSERT( wxTestStripExtension( _T("") ) == _T("") );
|
||||||
|
|
||||||
//others
|
//others
|
||||||
CPPUNIT_ASSERT( wxGetRealFile( _T(".") ) == _T("") );
|
CPPUNIT_ASSERT( wxTestStripExtension( _T(".") ) == _T("") );
|
||||||
CPPUNIT_ASSERT( wxGetRealFile( _T(".wav") ) == _T("") );
|
CPPUNIT_ASSERT( wxTestStripExtension( _T(".wav") ) == _T("") );
|
||||||
CPPUNIT_ASSERT( wxGetRealFile( _T("good.wav") ) == _T("good") );
|
CPPUNIT_ASSERT( wxTestStripExtension( _T("good.wav") ) == _T("good") );
|
||||||
CPPUNIT_ASSERT( wxGetRealFile( _T("good.wav.wav") ) == _T("good.wav") );
|
CPPUNIT_ASSERT( wxTestStripExtension( _T("good.wav.wav") ) == _T("good.wav") );
|
||||||
}
|
}
|
Reference in New Issue
Block a user