diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-13 18:12:56 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-13 18:12:56 +0200 |
| commit | 135ce06aa89742459473829966480bbc94d4b5c6 (patch) | |
| tree | fe3e4142d8b68a7eda7227f574765b32660901e8 /lib/tests/turnsmm/turn-order.cpp | |
| parent | 9513f7303ffde9fbda869e346523a23197f4ece9 (diff) | |
| download | turns-135ce06aa89742459473829966480bbc94d4b5c6.tar.xz turns-135ce06aa89742459473829966480bbc94d4b5c6.zip | |
lib: add participant-count property
Diffstat (limited to 'lib/tests/turnsmm/turn-order.cpp')
| -rw-r--r-- | lib/tests/turnsmm/turn-order.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tests/turnsmm/turn-order.cpp b/lib/tests/turnsmm/turn-order.cpp index d6178ba..ad8306b 100644 --- a/lib/tests/turnsmm/turn-order.cpp +++ b/lib/tests/turnsmm/turn-order.cpp @@ -2,15 +2,24 @@ #include <catch2/catch_test_macros.hpp> +#include <cstddef> + SCENARIO("Creating a turn order", "[lib][object][lifetime]") { GIVEN("A turn order constructed using the default constructor") { auto instance = Turns::TurnOrder{}; + THEN("it's participant count is 0") + { + REQUIRE(instance.get_participant_count() == 0uz); + REQUIRE(instance.get_property<std::size_t>("participant-count") == 0); + } + THEN("it's running state is false") { REQUIRE_FALSE(instance.get_running()); + REQUIRE_FALSE(instance.get_property<std::size_t>("running")); } } }
\ No newline at end of file |
