Skip to content

Commit

Permalink
Fixed id3v2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Helmling committed Feb 15, 2012
1 parent de51307 commit cfa5ac6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_id3v2.cpp
Expand Up @@ -553,8 +553,7 @@ class TestID3v2 : public CppUnit::TestFixture
ScopedFileCopy copy("rare_frames", ".mp3");
string newname = copy.fileName();
MPEG::File f(newname.c_str());
StringList ignored;
TagDict dict = f.ID3v2Tag(false)->toDict(&ignored);
PropertyMap dict = f.ID3v2Tag(false)->properties();
CPPUNIT_ASSERT_EQUAL(uint(6), dict.size());
CPPUNIT_ASSERT_EQUAL(String("userTextData1"), dict["USERTEXTDESCRIPTION1"][0]);
CPPUNIT_ASSERT_EQUAL(String("userTextData2"), dict["USERTEXTDESCRIPTION1"][1]);
Expand All @@ -563,12 +562,12 @@ class TestID3v2 : public CppUnit::TestFixture

CPPUNIT_ASSERT_EQUAL(String("Pop"), dict["GENRE"][0]);

CPPUNIT_ASSERT_EQUAL(String("http://a.user.url"), dict["USERURL"][0]);
CPPUNIT_ASSERT_EQUAL(String("http://a.user.url"), dict["URL:USERURL"][0]);
CPPUNIT_ASSERT_EQUAL(String("http://a.user.url/with/empty/description"), dict["URL"][0]);

CPPUNIT_ASSERT_EQUAL(String("A COMMENT"), dict["COMMENT"][0]);
CPPUNIT_ASSERT_EQUAL(String("UFID frame is not supported"), ignored[0]);
CPPUNIT_ASSERT_EQUAL(1u, ignored.size());
CPPUNIT_ASSERT_EQUAL(1u, dict.unsupportedData().size());
CPPUNIT_ASSERT_EQUAL(String("UFID"), dict.unsupportedData().front());
}

};
Expand Down

0 comments on commit cfa5ac6

Please sign in to comment.