mirror of
https://github.com/taglib/taglib.git
synced 2026-07-11 22:01:46 -04:00
Six new tests exercise corners of the chapter implementation that the orphaned-mdat fix did not reach: testQTChapterListUnicodeTitles / testChapterListUnicodeTitles -- Round-trip Japanese, German (umlaut), and Russian titles through the QT text-sample serialisation and the Nero length-prefixed UTF-8 path respectively. These are separate paths in the code and benefit from separate coverage. testQTChapterListEmptyTitleStripped -- A multi-chapter list whose first entry is empty at t=0 matches the QT dummy-marker pattern; read() must drop it. Test documents the rule so a regression is immediately detectable. testQTChapterListSingleEmptyTitleNotStripped -- The stripping rule only applies when size > 1. A single empty-title chapter at t=0 is valid and must be preserved. testNeroAndQTChaptersAreIndependent -- Both formats can coexist; removing one leaves the other intact. Validates the lazy saveChaptersIfModified contract in mp4file.cpp. testNeroChaptersAloneWhenNoQT -- Writing one format must not create atoms for the other. All 47 MP4 tests pass.