✅ test cases from RFC 7049 #384
This commit is contained in:
parent
aab9bbbb93
commit
17c9b17a7e
2 changed files with 182 additions and 9 deletions
|
|
@ -257,9 +257,9 @@ TEST_CASE("MessagePack")
|
|||
// check individual bytes
|
||||
CHECK(result[0] == 0xd2);
|
||||
uint32_t restored = static_cast<uint32_t>((static_cast<uint32_t>(result[1]) << 030) +
|
||||
(static_cast<uint32_t>(result[2]) << 020) +
|
||||
(static_cast<uint32_t>(result[3]) << 010) +
|
||||
static_cast<uint32_t>(result[4]));
|
||||
(static_cast<uint32_t>(result[2]) << 020) +
|
||||
(static_cast<uint32_t>(result[3]) << 010) +
|
||||
static_cast<uint32_t>(result[4]));
|
||||
CHECK(restored == i);
|
||||
|
||||
// roundtrip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue