diff options
author | Johannes Schickel | 2015-01-04 20:58:19 +0100 |
---|---|---|
committer | Johannes Schickel | 2015-01-04 21:09:32 +0100 |
commit | daa8fca001c0eddd5b0856d60aa7ecd59c7d6acc (patch) | |
tree | 376671be88a82ecf286dd92662b31b900209a571 /test/common | |
parent | eb4d1a69255b06f93c497aabd9cf950bfe0756ec (diff) | |
download | scummvm-rg350-daa8fca001c0eddd5b0856d60aa7ecd59c7d6acc.tar.gz scummvm-rg350-daa8fca001c0eddd5b0856d60aa7ecd59c7d6acc.tar.bz2 scummvm-rg350-daa8fca001c0eddd5b0856d60aa7ecd59c7d6acc.zip |
TEST: Fix uint64 endian related test code.
This does not fix the actual implementation issues which are present right
now!
Diffstat (limited to 'test/common')
-rw-r--r-- | test/common/endian.h | 2 | ||||
-rw-r--r-- | test/common/memoryreadstreamendian.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/common/endian.h b/test/common/endian.h index 08e93e41ef..065b6997fc 100644 --- a/test/common/endian.h +++ b/test/common/endian.h @@ -19,7 +19,7 @@ class EndianTestSuite : public CxxTest::TestSuite void test_READ_LE_UINT64() { const byte data[8] = {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC, 0xDE, 0xFF}; uint64 value = READ_LE_UINT64(data); - TS_ASSERT_EQUALS(value, 0xFFEDCBA978563412ULL); + TS_ASSERT_EQUALS(value, 0xFFDEBC9A78563412ULL); } void test_READ_BE_UINT32() { diff --git a/test/common/memoryreadstreamendian.h b/test/common/memoryreadstreamendian.h index 515128ea2a..c25ec29e1a 100644 --- a/test/common/memoryreadstreamendian.h +++ b/test/common/memoryreadstreamendian.h @@ -82,7 +82,7 @@ class MemoryReadStreamEndianTestSuite : public CxxTest::TestSuite { TS_ASSERT_EQUALS(ms.pos(), 2); TS_ASSERT_EQUALS(ms.readUint32BE(), 0x03040506UL); TS_ASSERT_EQUALS(ms.pos(), 6); - TS_ASSERT_EQUALS(ms.readUint64LE(), 0x0708090A0B0C0D0EULL); + TS_ASSERT_EQUALS(ms.readUint64BE(), 0x0708090A0B0C0D0EULL); TS_ASSERT_EQUALS(ms.pos(), 14); TS_ASSERT_EQUALS(ms.readByte(), 0x0F); TS_ASSERT_EQUALS(ms.pos(), 15); @@ -97,7 +97,7 @@ class MemoryReadStreamEndianTestSuite : public CxxTest::TestSuite { TS_ASSERT_EQUALS(ms.pos(), 2); TS_ASSERT_EQUALS(ms.readUint32(), 0x06050403UL); TS_ASSERT_EQUALS(ms.pos(), 6); - TS_ASSERT_EQUALS(ms.readUint64LE(), 0x0E0D0C0B0A090807ULL); + TS_ASSERT_EQUALS(ms.readUint64(), 0x0E0D0C0B0A090807ULL); TS_ASSERT_EQUALS(ms.pos(), 14); TS_ASSERT_EQUALS(ms.readByte(), 0x0F); TS_ASSERT_EQUALS(ms.pos(), 15); @@ -112,7 +112,7 @@ class MemoryReadStreamEndianTestSuite : public CxxTest::TestSuite { TS_ASSERT_EQUALS(ms.pos(), 2); TS_ASSERT_EQUALS(ms.readUint32(), 0x03040506UL); TS_ASSERT_EQUALS(ms.pos(), 6); - TS_ASSERT_EQUALS(ms.readUint64LE(), 0x0708090A0B0C0D0EULL); + TS_ASSERT_EQUALS(ms.readUint64(), 0x0708090A0B0C0D0EULL); TS_ASSERT_EQUALS(ms.pos(), 14); TS_ASSERT_EQUALS(ms.readByte(), 0x0F); TS_ASSERT_EQUALS(ms.pos(), 15); |