Skip to content
Snippets Groups Projects
Commit fd7ad95c authored by Tristan Matthews's avatar Tristan Matthews
Browse files

ringtonetest: cleanup

parent dc84b942
No related branches found
No related tags found
No related merge requests found
......@@ -32,17 +32,12 @@
void RingtoneTest::testLoadWavefile()
{
WavFile *wav = new WavFile();
WavFile wav;
// Test initial values
CPPUNIT_ASSERT(wav->isStarted() == false);
CPPUNIT_ASSERT(wav->getSize() == 0);
CPPUNIT_ASSERT(not wav.isStarted());
CPPUNIT_ASSERT(wav.getSize() == 0);
// Test protection against wrong file name
CPPUNIT_ASSERT(wav->loadFile(std::string("wrongfilename.wav"), NULL, 44100) == false);
delete wav;
wav = NULL;
CPPUNIT_ASSERT(not wav.loadFile(std::string("wrongfilename.wav"), NULL, 44100));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment