diff options
author | Scott Wheeler <scott@directededge.com> | 2020-10-12 08:46:51 +0200 |
---|---|---|
committer | Scott Wheeler <scott@directededge.com> | 2020-10-12 08:46:51 +0200 |
commit | e116824380e9464e7741791381cee2b9ec72d6f6 (patch) | |
tree | b4bbd3d1adf2881699fcb8f3b9a7731989263c51 /tests | |
parent | 2db13ad8cfd8318c581b41f0311a70185e6b6d23 (diff) |
Downgrade numerical genres back to ID3v2.3 format
Closes #631
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_id3v2.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/test_id3v2.cpp b/tests/test_id3v2.cpp index 6e5452ba..dd260c0f 100644 --- a/tests/test_id3v2.cpp +++ b/tests/test_id3v2.cpp @@ -1,4 +1,4 @@ -/*************************************************************************** + /*************************************************************************** copyright : (C) 2007 by Lukas Lalinsky email : lukas@oxygene.sk ***************************************************************************/ @@ -798,7 +798,16 @@ public: CPPUNIT_ASSERT(!bar.ID3v2Tag()->frameListMap().contains("TSOP")); #endif CPPUNIT_ASSERT(!bar.ID3v2Tag()->frameListMap().contains("TSST")); -} + } + + ScopedFileCopy rareFramesCopy("rare_frames", ".mp3"); + + { + MPEG::File f(rareFramesCopy.fileName().c_str()); + f.save(MPEG::File::AllTags, File::StripOthers, ID3v2::v3); + f.seek(f.find("TCON") + 11); + CPPUNIT_ASSERT_EQUAL(ByteVector("(13)"), f.readBlock(4)); + } } void testCompressedFrameWithBrokenLength() |