feat(datastore): add getter and setter for float

This commit is contained in:
fallenoak 2023-02-09 23:49:06 -06:00
parent 1113e846da
commit a4dfbeff7a
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
3 changed files with 44 additions and 0 deletions

View file

@ -56,4 +56,16 @@ TEST_CASE("CDataStore::Get", "[datastore]") {
REQUIRE(readVal == writeVal);
}
SECTION("gets float") {
float writeVal = 1.5f;
float readVal = -1.0f;
CDataStore msg;
msg.Put(writeVal);
msg.Finalize();
msg.Get(readVal);
REQUIRE(readVal == writeVal);
}
}