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