Skip to content

Commit

Permalink
use enum class for VuMeter style
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Mar 15, 2024
1 parent dd3cf04 commit 4d9f4dc
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ TEST_CASE (CVuMeterCreatorTest, OffBitmap)
TEST_CASE (CVuMeterCreatorTest, Orientation)
{
DummyUIDescription uidesc;
testAttribute<CVuMeter> (kCVuMeter, kAttrOrientation, "horizontal", &uidesc,
[&] (CVuMeter* v) { return v->getStyle () == CVuMeter::kHorizontal; });
testAttribute<CVuMeter> (kCVuMeter, kAttrOrientation, "vertical", &uidesc,
[&] (CVuMeter* v) { return v->getStyle () == CVuMeter::kVertical; });
testAttribute<CVuMeter> (kCVuMeter, kAttrOrientation, "horizontal", &uidesc, [&] (CVuMeter* v) {
return v->getStyle () == CVuMeter::Style::kHorizontal;
});
testAttribute<CVuMeter> (kCVuMeter, kAttrOrientation, "vertical", &uidesc, [&] (CVuMeter* v) {
return v->getStyle () == CVuMeter::Style::kVertical;
});
}

TEST_CASE (CVuMeterCreatorTest, NumLed)
Expand Down

0 comments on commit 4d9f4dc

Please sign in to comment.