feat(datastore): add getter for uint8_t

This commit is contained in:
fallenoak 2023-01-08 00:03:52 -06:00 committed by GitHub
parent 1c4d306a7f
commit 30c34ca015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 0 deletions

View file

@ -7,3 +7,17 @@ TEST_CASE("CDataStore::CDataStore", "[datastore]") {
SUCCEED();
}
}
TEST_CASE("CDataStore::Get", "[datastore]") {
SECTION("gets uint8_t") {
uint8_t writeVal = 8;
uint8_t readVal = -1;
CDataStore msg;
msg.Put(writeVal);
msg.Finalize();
msg.Get(readVal);
REQUIRE(readVal == writeVal);
}
}