feat(datastore): add getter and setter for uint64_t

This commit is contained in:
fallenoak 2023-01-08 14:11:48 -06:00
parent 28e59a11ef
commit 5dce613aeb
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 44 additions and 0 deletions

View file

@ -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);
}
}