From 70fc497623981320e4a5641e83e1b3392f343440 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Fri, 29 Mar 2024 23:56:04 +0900 Subject: [PATCH] add update test --- tests/tray_test.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/tray_test.cpp b/tests/tray_test.cpp index 6a6b84d..515e15b 100644 --- a/tests/tray_test.cpp +++ b/tests/tray_test.cpp @@ -135,4 +135,16 @@ TEST_CASE("FluentTray Test: ") { CHECK((tray.end() - 1)->get_label(label34)) ; CHECK_EQ(label34, "menu3") ; } + + SUBCASE("update") { + FluentTray tray ; + CHECK(tray.create_tray("test_update", "")) ; + + CHECK(tray.add_menu("menu1")) ; + CHECK(tray.add_menu("menu2")) ; + CHECK(tray.add_menu("menu3")) ; + + CHECK(tray.update()) ; + tray.stop() ; + } }