mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Don't require users to include a padding byte explicitly
This makes it where the natural construction can be used of something like: new ChapterFrame("ID", ... ) Closes #514
This commit is contained in:
@ -965,7 +965,21 @@ public:
|
||||
|
||||
ID3v2::ChapterFrame f3(ByteVector("C\x00", 2), 3, 5, 2, 3, frames);
|
||||
CPPUNIT_ASSERT_EQUAL(expected, f3.render());
|
||||
}
|
||||
|
||||
frames.clear();
|
||||
eF = new ID3v2::TextIdentificationFrame("TIT2");
|
||||
eF->setText("CH1");
|
||||
frames.append(eF);
|
||||
|
||||
ID3v2::ChapterFrame f4("C", 3, 5, 2, 3, frames);
|
||||
CPPUNIT_ASSERT_EQUAL(expected, f4.render());
|
||||
|
||||
ID3v2::ChapterFrame f5("C", 3, 5, 2, 3);
|
||||
eF = new ID3v2::TextIdentificationFrame("TIT2");
|
||||
eF->setText("CH1");
|
||||
f5.addEmbeddedFrame(eF);
|
||||
CPPUNIT_ASSERT_EQUAL(expected, f5.render());
|
||||
}
|
||||
|
||||
void testParseTableOfContentsFrame()
|
||||
{
|
||||
|
Reference in New Issue
Block a user