Rework of EffectParameter storage, added float value.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user