mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
@ -19,6 +19,7 @@ class TestMP4 : public CppUnit::TestFixture
|
||||
CPPUNIT_TEST(testPropertiesALAC);
|
||||
CPPUNIT_TEST(testFreeForm);
|
||||
CPPUNIT_TEST(testCheckValid);
|
||||
CPPUNIT_TEST(testIsEmpty);
|
||||
CPPUNIT_TEST(testUpdateStco);
|
||||
CPPUNIT_TEST(testSaveExisingWhenIlstIsLast);
|
||||
CPPUNIT_TEST(test64BitAtom);
|
||||
@ -62,6 +63,18 @@ public:
|
||||
CPPUNIT_ASSERT(f2.isValid());
|
||||
}
|
||||
|
||||
void testIsEmpty()
|
||||
{
|
||||
MP4::Tag t1;
|
||||
CPPUNIT_ASSERT(t1.isEmpty());
|
||||
t1.setArtist("Foo");
|
||||
CPPUNIT_ASSERT(!t1.isEmpty());
|
||||
|
||||
MP4::Tag t2;
|
||||
t2.itemListMap()["foo"] = "bar";
|
||||
CPPUNIT_ASSERT(!t2.isEmpty());
|
||||
}
|
||||
|
||||
void testUpdateStco()
|
||||
{
|
||||
ScopedFileCopy copy("no-tags", ".3g2");
|
||||
|
Reference in New Issue
Block a user