#include "turns/app/windows/main.hpp" #include #include #include #include #include using namespace std::string_literals; namespace turns::app::windows::tests { TEST_CASE("Newly constructed main window", "[windows]") { auto builder = Gtk::Builder::create_from_resource("/turns/windows/main_window.ui"); auto instance = Gtk::Builder::get_widget_derived
(builder, "main_window"); SECTION("construction via builder succeeds") { REQUIRE(instance); } SECTION("the window title is not empty") { auto widget = builder->get_widget("title"); auto adw = ADW_WINDOW_TITLE(widget->gobj()); REQUIRE(adw_window_title_get_subtitle(adw) != ""s); } } } // namespace turns::app::windows::tests