mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 00:58:12 -04:00
Improve a test about handling duplicate tags in WAV files.
This commit is contained in:
parent
c5cf9b93bc
commit
c7231c58a3
@ -188,7 +188,10 @@ public:
|
||||
|
||||
void testDuplicateTags()
|
||||
{
|
||||
RIFF::WAV::File f(TEST_FILE_PATH_C("duplicate_tags.wav"));
|
||||
ScopedFileCopy copy("duplicate_tags", ".wav");
|
||||
|
||||
RIFF::WAV::File f(copy.fileName().c_str());
|
||||
CPPUNIT_ASSERT_EQUAL(17052L, f.length());
|
||||
|
||||
// duplicate_tags.wav has duplicate ID3v2/INFO tags.
|
||||
// title() returns "Title2" if can't skip the second tag.
|
||||
@ -198,6 +201,10 @@ public:
|
||||
|
||||
CPPUNIT_ASSERT(f.hasInfoTag());
|
||||
CPPUNIT_ASSERT_EQUAL(String("Title1"), f.InfoTag()->title());
|
||||
|
||||
f.save();
|
||||
CPPUNIT_ASSERT_EQUAL(15898L, f.length());
|
||||
CPPUNIT_ASSERT_EQUAL(-1L, f.find("Title2"));
|
||||
}
|
||||
|
||||
void testFuzzedFile1()
|
||||
|
Loading…
x
Reference in New Issue
Block a user