mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 11:12:29 +00:00
feat(datastore): add getter and setter for uint64_t
This commit is contained in:
parent
28e59a11ef
commit
5dce613aeb
3 changed files with 44 additions and 0 deletions
|
|
@ -32,4 +32,16 @@ TEST_CASE("CDataStore::Get", "[datastore]") {
|
|||
|
||||
REQUIRE(readVal == writeVal);
|
||||
}
|
||||
|
||||
SECTION("gets uint64_t") {
|
||||
uint64_t writeVal = 0x1122334455667788;
|
||||
uint64_t readVal = 0x1122334455667788;
|
||||
|
||||
CDataStore msg;
|
||||
msg.Put(writeVal);
|
||||
msg.Finalize();
|
||||
msg.Get(readVal);
|
||||
|
||||
REQUIRE(readVal == writeVal);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue