mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
feat(datastore): add getter and setter for float
This commit is contained in:
parent
1113e846da
commit
a4dfbeff7a
3 changed files with 44 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue