Fix tests
This commit is contained in:
2024-10-17 10:21:19 +02:00
parent f64df41df8
commit 399390d737
10 changed files with 28 additions and 38 deletions
+2 -3
View File
@@ -3,10 +3,9 @@
TEST(UI_button, to_from_json)
{
UI_button button("button_id", "button_text", Color(255, 255, 255), Color(0, 0, 0), nullptr);
json j = button.to_json();
UI_button button("button_text", Color(255, 255, 255), Color(0, 0, 0), nullptr);
json j = button.to_json(0);
UI_button button2(j);
EXPECT_EQ(button.id(), button2.id());
EXPECT_EQ(button.text(), button2.text());
EXPECT_EQ(button.fg_color(), button2.fg_color());
EXPECT_EQ(button.bg_color(), button2.bg_color());