CPPUNIT_TEST(testSaveID3v24);
CPPUNIT_TEST(testSaveID3v24WrongParam);
CPPUNIT_TEST(testSaveID3v23);
+ CPPUNIT_TEST(testDuplicateID3v2);
CPPUNIT_TEST_SUITE_END();
public:
}
}
+ void testDuplicateID3v2()
+ {
+ ScopedFileCopy copy("duplicate_id3v2", ".mp3");
+ string newname = copy.fileName();
+
+ MPEG::File f(newname.c_str());
+
+ // duplicate_id3v2.mp3 has duplicate ID3v2 tags.
+ // Sample rate will be 32000 if can't skip the second tag.
+
+ CPPUNIT_ASSERT_EQUAL(44100, f.audioProperties()->sampleRate());
+ }
+
};
CPPUNIT_TEST_SUITE_REGISTRATION(TestMPEG);