]> granicus.if.org Git - taglib/commitdiff
Make this check current with the bytevector code.
authorScott Wheeler <wheeler@kde.org>
Tue, 27 Apr 2004 01:09:48 +0000 (01:09 +0000)
committerScott Wheeler <wheeler@kde.org>
Tue, 27 Apr 2004 01:09:48 +0000 (01:09 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@306700 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

tests/toolkit-test.cpp

index e5a8d62ee4f3e38f15d982ee9fe00407ca3430df..aa1042d20fda6a77bd8df246be0cb5a69a178eda 100644 (file)
@@ -155,12 +155,10 @@ void testByteVector()
   ByteVector intVector(2, 0);
   intVector[0] = char(0xfc);
   intVector[1] = char(0x00);
-  printResult(intVector.toUInt() == 64512);
-  printResult(intVector.toInt() == -1024);
+  printResult(intVector.toShort() == -1024);
   intVector[0] = char(0x04);
   intVector[1] = char(0x00);
-  printResult(intVector.toUInt() == 1024);
-  printResult(intVector.toInt() == 1024);
+  printResult(intVector.toShort() == 1024);
   
   ByteVector r0("**************");
   ByteVector r1("OggS**********");