diff --git a/tests/test_bytevector.cpp b/tests/test_bytevector.cpp index bd8c6088..42b1c0c5 100644 --- a/tests/test_bytevector.cpp +++ b/tests/test_bytevector.cpp @@ -63,9 +63,9 @@ public: CPPUNIT_ASSERT(ByteVectorList::split(s2, " ").size() == 1); CPPUNIT_ASSERT(ByteVector().isEmpty()); - CPPUNIT_ASSERT_EQUAL(0U, ByteVector().size()); + CPPUNIT_ASSERT_EQUAL((size_t)0, ByteVector().size()); CPPUNIT_ASSERT(ByteVector("asdf").clear().isEmpty()); - CPPUNIT_ASSERT_EQUAL(0U, ByteVector("asdf").clear().size()); + CPPUNIT_ASSERT_EQUAL((size_t)0, ByteVector("asdf").clear().size()); CPPUNIT_ASSERT_EQUAL(ByteVector(), ByteVector("asdf").clear()); ByteVector i("blah blah"); diff --git a/tests/test_id3v2.cpp b/tests/test_id3v2.cpp index 9569d14f..1c6f19bd 100644 --- a/tests/test_id3v2.cpp +++ b/tests/test_id3v2.cpp @@ -170,7 +170,7 @@ public: CPPUNIT_ASSERT(file.hasID3v2Tag()); ByteVector data = f->render(); - CPPUNIT_ASSERT_EQUAL((unsigned int)(4+4+2+1+3+2+2+6+2), data.size()); + CPPUNIT_ASSERT_EQUAL((size_t)(4+4+2+1+3+2+2+6+2), data.size()); ID3v2::UnsynchronizedLyricsFrame f2(data); CPPUNIT_ASSERT_EQUAL(String("Foo"), f2.text()); @@ -557,7 +557,7 @@ public: CPPUNIT_ASSERT_EQUAL(ID3v2::SynchronizedLyricsFrame::Lyrics, f.type()); CPPUNIT_ASSERT(f.description().isEmpty()); ID3v2::SynchronizedLyricsFrame::SynchedTextList stl = f.synchedText(); - CPPUNIT_ASSERT_EQUAL((unsigned int)2, stl.size()); + CPPUNIT_ASSERT_EQUAL((size_t)2, stl.size()); CPPUNIT_ASSERT_EQUAL(String("Example"), stl[0].text); CPPUNIT_ASSERT_EQUAL((unsigned int)1234, stl[0].time); CPPUNIT_ASSERT_EQUAL(String("Lyrics"), stl[1].text); @@ -673,7 +673,7 @@ public: header.setMajorVersion(3); ID3v2::TextIdentificationFrame *frame = dynamic_cast(factory->createFrame(data, &header)); - CPPUNIT_ASSERT_EQUAL((unsigned int)1, frame->fieldList().size()); + CPPUNIT_ASSERT_EQUAL((size_t)1, frame->fieldList().size()); CPPUNIT_ASSERT_EQUAL(String("Death Metal"), frame->fieldList()[0]); ID3v2::Tag tag; @@ -694,7 +694,7 @@ public: header.setMajorVersion(3); ID3v2::TextIdentificationFrame *frame = dynamic_cast(factory->createFrame(data, &header)); - CPPUNIT_ASSERT_EQUAL((unsigned int)2, frame->fieldList().size()); + CPPUNIT_ASSERT_EQUAL((size_t)2, frame->fieldList().size()); CPPUNIT_ASSERT_EQUAL(String("4"), frame->fieldList()[0]); CPPUNIT_ASSERT_EQUAL(String("Eurodisco"), frame->fieldList()[1]); @@ -714,7 +714,7 @@ public: ID3v2::Header header; ID3v2::TextIdentificationFrame *frame = dynamic_cast(factory->createFrame(data, &header)); - CPPUNIT_ASSERT_EQUAL((unsigned int)2, frame->fieldList().size()); + CPPUNIT_ASSERT_EQUAL((size_t)2, frame->fieldList().size()); CPPUNIT_ASSERT_EQUAL(String("14"), frame->fieldList()[0]); CPPUNIT_ASSERT_EQUAL(String("Eurodisco"), frame->fieldList()[1]); @@ -813,7 +813,7 @@ public: CPPUNIT_ASSERT_EQUAL(String("image/bmp"), frame->mimeType()); CPPUNIT_ASSERT_EQUAL(ID3v2::AttachedPictureFrame::Other, frame->type()); CPPUNIT_ASSERT_EQUAL(String(""), frame->description()); - CPPUNIT_ASSERT_EQUAL((unsigned int)86414, frame->picture().size()); + CPPUNIT_ASSERT_EQUAL((size_t)86414, frame->picture().size()); } else { // Skip the test if ZLIB is not installed. diff --git a/tests/test_synchdata.cpp b/tests/test_synchdata.cpp index c593e93d..5b023ce1 100644 --- a/tests/test_synchdata.cpp +++ b/tests/test_synchdata.cpp @@ -110,7 +110,7 @@ public: { ByteVector a("\xff\xff\x00", 3); a = ID3v2::SynchData::decode(a); - CPPUNIT_ASSERT_EQUAL((unsigned int)2, a.size()); + CPPUNIT_ASSERT_EQUAL((size_t)2, a.size()); CPPUNIT_ASSERT_EQUAL(ByteVector("\xff\xff", 2), a); } @@ -118,7 +118,7 @@ public: { ByteVector a("\xff\xff\xff", 3); a = ID3v2::SynchData::decode(a); - CPPUNIT_ASSERT_EQUAL((unsigned int)3, a.size()); + CPPUNIT_ASSERT_EQUAL((size_t)3, a.size()); CPPUNIT_ASSERT_EQUAL(ByteVector("\xff\xff\xff", 3), a); }