diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-06-06 10:16:05 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-06-06 10:16:05 +0200 |
| commit | 06fbef022fc519e2d8d80615968fc081dcfcb097 (patch) | |
| tree | 2834117c48b551814e1332458250fafcb08448d2 /lib/tests/turns-turn-order.cpp | |
| parent | d06170f697bed566b823a0a300b41678773ce954 (diff) | |
| download | turns-06fbef022fc519e2d8d80615968fc081dcfcb097.tar.xz turns-06fbef022fc519e2d8d80615968fc081dcfcb097.zip | |
lib: add more round progress tests
Diffstat (limited to 'lib/tests/turns-turn-order.cpp')
| -rw-r--r-- | lib/tests/turns-turn-order.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
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)); |
