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 | |
| parent | d06170f697bed566b823a0a300b41678773ce954 (diff) | |
| download | turns-06fbef022fc519e2d8d80615968fc081dcfcb097.tar.xz turns-06fbef022fc519e2d8d80615968fc081dcfcb097.zip | |
lib: add more round progress tests
Diffstat (limited to 'lib/tests')
| -rw-r--r-- | lib/tests/turns-turn-order.cpp | 20 | ||||
| -rw-r--r-- | lib/tests/turnsmm/turn-order.cpp | 25 |
2 files changed, 45 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)); diff --git a/lib/tests/turnsmm/turn-order.cpp b/lib/tests/turnsmm/turn-order.cpp index fffe507..572d8ce 100644 --- a/lib/tests/turnsmm/turn-order.cpp +++ b/lib/tests/turnsmm/turn-order.cpp @@ -79,6 +79,11 @@ SCENARIO("Creating a turn order", "[lib][object][lifetime]") REQUIRE_FALSE(list_model_notification.has_value()); } + THEN("its round progress is 0") + { + REQUIRE(instance.get_round_progress() == 0); + } + THEN("it's empty") { REQUIRE(instance.get_empty()); @@ -146,6 +151,11 @@ SCENARIO("Modifying a turn order", "[lib][object][data]") REQUIRE(added == 1); } + THEN("its round progress is 0") + { + REQUIRE(instance.get_round_progress() == 0); + } + THEN("it's not empty") { REQUIRE_FALSE(instance.get_empty()); @@ -200,6 +210,11 @@ SCENARIO("Modifying a turn order", "[lib][object][data]") REQUIRE(added == 0); } + THEN("its round progress is 0") + { + REQUIRE(instance.get_round_progress() == 0); + } + THEN("it's empty") { REQUIRE(instance.get_empty()); @@ -232,6 +247,11 @@ SCENARIO("Modifying a turn order", "[lib][object][data]") REQUIRE(added == 0); } + THEN("its round progress is 0") + { + REQUIRE(instance.get_round_progress() == 0); + } + THEN("it's empty") { REQUIRE(instance.get_empty()); @@ -254,6 +274,11 @@ SCENARIO("Modifying a turn order", "[lib][object][data]") REQUIRE(!list_model_notification.has_value()); } + THEN("its round progress is 0") + { + REQUIRE(instance.get_round_progress() == 0); + } + THEN("it's empty") { REQUIRE(instance.get_empty()); |
