+wxString wxTestStripExtension(wxString szFile)
+{
+ wxStripExtension(szFile);
+ return szFile;
+}
+
+void FileNameTestCase::TestStrip()
+{
+ //test a crash
+ CPPUNIT_ASSERT( wxTestStripExtension( _T("") ) == _T("") );
+
+ //others
+ 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") );
+}