/* * SPDX-FileCopyrightText: 2025 Felix Morgner * SPDX-License-Identifier: LGPL-2.1-only */ #include "turns-participant.h" #include "turns-turn-order.h" #include "turnsmm/init.hpp" #include "turnsmm/participant.hpp" #include "turnsmm/turn-order.hpp" #include #include #include #include #include namespace turns::core::tests { struct glib_test_init : Catch::EventListenerBase { using Catch::EventListenerBase::EventListenerBase; auto testRunStarting(Catch::TestRunInfo const &) -> void override { Glib::init(); Turns::init(); CHECK(Turns::Participant::get_base_type() == turns_participant_get_type()); CHECK(Glib::Value::value_type() == turns_participant_disposition_get_type()); CHECK(Turns::TurnOrder::get_base_type() == turns_turn_order_get_type()); CHECK(Glib::Value::value_type() == turns_turn_order_sort_mode_get_type()); } }; CATCH_REGISTER_LISTENER(glib_test_init); } // namespace turns::core::tests