diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 13:01:52 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-23 13:01:52 +0200 |
| commit | 14db127b26bc47861b6c41f144fe6e3b4ce283a0 (patch) | |
| tree | 720570b5ec887ce514e41831debc08eeedf64c0a /lib/tests | |
| parent | 8fd2285000f756dd5cf1e89a6fef8196df0ab2bf (diff) | |
| download | turns-14db127b26bc47861b6c41f144fe6e3b4ce283a0.tar.xz turns-14db127b26bc47861b6c41f144fe6e3b4ce283a0.zip | |
lib: add type tests
Diffstat (limited to 'lib/tests')
| -rw-r--r-- | lib/tests/turnsmm/runtime_init.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/tests/turnsmm/runtime_init.cpp b/lib/tests/turnsmm/runtime_init.cpp index e0c1065..f505a3d 100644 --- a/lib/tests/turnsmm/runtime_init.cpp +++ b/lib/tests/turnsmm/runtime_init.cpp @@ -5,11 +5,18 @@ #include "turnsmm/init.hpp" +#include <catch2/catch_test_macros.hpp> +#include <catch2/internal/catch_test_run_info.hpp> #include <catch2/reporters/catch_reporter_event_listener.hpp> #include <catch2/reporters/catch_reporter_registrars.hpp> #include <glibmm/init.h> +#include <turns-participant.h> +#include <turns-turn-order.h> +#include <turnsmm/participant.hpp> +#include <turnsmm/turn-order.hpp> + namespace turns::core::tests { @@ -21,6 +28,12 @@ namespace turns::core::tests { Glib::init(); Turns::init(); + + CHECK(Turns::Participant::get_base_type() == turns_participant_get_type()); + CHECK(Glib::Value<Turns::Participant::Disposition>::value_type() == turns_participant_disposition_get_type()); + + CHECK(Turns::TurnOrder::get_base_type() == turns_turn_order_get_type()); + CHECK(Glib::Value<Turns::TurnOrder::SortMode>::value_type() == turns_turn_order_sort_mode_get_type()); } }; |
