Rework of EffectParameter storage, added float value.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-04-10 21:05:44 +02:00
parent a6ab69e043
commit beb50a60b0
2 changed files with 31 additions and 19 deletions

View File

@@ -17,7 +17,12 @@ TEST_CASE("Int EffectParameter", "[Library]") {
TEST_CASE("String EffectParameter", "[Library]") {
auto p = EffectParameter(std::string("foobar"));
REQUIRE(strcmp(p.AsString(), "foobar") == 0);
REQUIRE(p.AsString() == "foobar");
}
TEST_CASE("Float EffectParameter", "[Library]") {
auto p = EffectParameter(1.5f);
REQUIRE(p.AsFloat() == Approx(1.5f));
}
#endif