From 06fbef022fc519e2d8d80615968fc081dcfcb097 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 6 Jun 2025 10:16:05 +0200 Subject: lib: add more round progress tests --- lib/tests/turns-turn-order.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lib/tests/turns-turn-order.cpp') diff --git a/lib/tests/turns-turn-order.cpp b/lib/tests/turns-turn-order.cpp index 4ff1a83..bdf52a0 100644 --- a/lib/tests/turns-turn-order.cpp +++ b/lib/tests/turns-turn-order.cpp @@ -137,6 +137,11 @@ SCENARIO("Modifying a turn order", "[lib][object][data]") REQUIRE(TURNS_PARTICIPANT(object) == participant); } + THEN("its round progress is 0") + { + REQUIRE(turns_turn_order_get_round_progress(instance) == 0); + } + THEN("it's not empty") { REQUIRE_FALSE(turns_turn_order_get_empty(instance)); @@ -198,6 +203,11 @@ SCENARIO("Modifying a turn order", "[lib][object][data]") REQUIRE(added == 0); } + THEN("its round progress is 0") + { + REQUIRE(turns_turn_order_get_round_progress(instance) == 0); + } + THEN("it's empty") { REQUIRE(turns_turn_order_get_empty(instance)); @@ -244,6 +254,11 @@ SCENARIO("Modifying a turn order", "[lib][object][data]") REQUIRE(added == 0); } + THEN("its round progress is 0") + { + REQUIRE(turns_turn_order_get_round_progress(instance) == 0); + } + THEN("it's empty") { REQUIRE(turns_turn_order_get_empty(instance)); @@ -280,6 +295,11 @@ SCENARIO("Modifying a turn order", "[lib][object][data]") REQUIRE(!list_model_notification.has_value()); } + THEN("its round progress is 0") + { + REQUIRE(turns_turn_order_get_round_progress(instance) == 0); + } + THEN("it's empty") { REQUIRE(turns_turn_order_get_empty(instance)); -- cgit v1.2.3