barelymusician/engine/parameter_test.cpp
// Tests that parameter returns its definition as expected.
Tests that parameter returns its definition as expected.
Tests that parameter returns its definition as expected .
TEST(ParameterTest, GetDefinition) {
  const Parameter parameter(Parameter::Definition{-1.0, -10.0, 10.0});
  const auto definition = parameter.GetDefinition();
  EXPECT_DOUBLE_EQ(definition.default_value, -1.0);
  EXPECT_DOUBLE_EQ(definition.min_value, -10.0);
  EXPECT_DOUBLE_EQ(definition.max_value, 10.0);
}
TEST ( ParameterTest , GetDefinition ) { const Parameter parameter ( Parameter :: Definition { -1.0 , -10.0 , 10.0 } ) ; const auto definition = parameter . GetDefinition ( ) ; EXPECT_DOUBLE_EQ ( definition . default_value , -1.0 ) ; EXPECT_DOUBLE_EQ ( definition . min_value , -10.0 ) ; EXPECT_DOUBLE_EQ ( definition . max_value , 10.0 ) ; }
Tests that parameter returns its definition as expected.
Tests that parameter returns its definition as expected .