mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 09:08:09 -04:00
Add a check for the toInt() stuff.
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@306691 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
parent
31b46c03ac
commit
cfbc564bb6
@ -152,6 +152,16 @@ void testByteVector()
|
||||
testConversion(0x000000a0, 0x00, 0x00, 0x00, 0xa0);
|
||||
testConversion(0xd50bf072, 0xd5, 0x0b, 0xf0, 0x72);
|
||||
|
||||
ByteVector intVector(2, 0);
|
||||
intVector[0] = char(0xfc);
|
||||
intVector[1] = char(0x00);
|
||||
printResult(intVector.toUInt() == 64512);
|
||||
printResult(intVector.toInt() == -1024);
|
||||
intVector[0] = char(0x04);
|
||||
intVector[1] = char(0x00);
|
||||
printResult(intVector.toUInt() == 1024);
|
||||
printResult(intVector.toInt() == 1024);
|
||||
|
||||
ByteVector r0("**************");
|
||||
ByteVector r1("OggS**********");
|
||||
ByteVector r2("**********OggS");
|
||||
|
Loading…
x
Reference in New Issue
Block a user