mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
test clean + bug fixes
This commit is contained in:
@@ -10,6 +10,7 @@ TEST(UI_dial, to_from_json)
|
||||
EXPECT_EQ(dial.fg_color(), dial2.fg_color());
|
||||
EXPECT_EQ(dial.bg_color(), dial2.bg_color());
|
||||
EXPECT_EQ(dial.value(), dial2.value());
|
||||
EXPECT_EQ(dial.unit(), dial2.unit());
|
||||
}
|
||||
|
||||
TEST(UI_dial, set_value)
|
||||
@@ -18,3 +19,9 @@ TEST(UI_dial, set_value)
|
||||
dial.set_value(75);
|
||||
EXPECT_EQ(dial.value(), 75);
|
||||
}
|
||||
|
||||
TEST(UI_dial, unit)
|
||||
{
|
||||
UI_dial dial("slider_text", "unit", Color(255, 255, 255), Color(0, 0, 0), 0, 100, 50);
|
||||
EXPECT_EQ(dial.unit(), "unit");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user