diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-13 15:59:02 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-13 15:59:02 +0200 |
| commit | 9513f7303ffde9fbda869e346523a23197f4ece9 (patch) | |
| tree | f35ab8afa3273d1a8c4da2fc2ac9580a157a3a2c /lib/tests | |
| parent | 661e98cf8bb61f29049d405aef9cdaace1449ac8 (diff) | |
| download | turns-9513f7303ffde9fbda869e346523a23197f4ece9.tar.xz turns-9513f7303ffde9fbda869e346523a23197f4ece9.zip | |
lib: begin TurnOrder implementation
Diffstat (limited to 'lib/tests')
| -rw-r--r-- | lib/tests/turns-turn-order.cpp | 16 | ||||
| -rw-r--r-- | lib/tests/turnsmm/turn-order.cpp | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/lib/tests/turns-turn-order.cpp b/lib/tests/turns-turn-order.cpp new file mode 100644 index 0000000..feb0aa1 --- /dev/null +++ b/lib/tests/turns-turn-order.cpp @@ -0,0 +1,16 @@ +#include "turns-turn-order.h" + +#include <catch2/catch_test_macros.hpp> + +SCENARIO("Creating a turn order", "[lib][object][lifetime]") +{ + GIVEN("A turn order constructed using turns_turn_order_new()") + { + g_autoptr(TurnsTurnOrder) instance = turns_turn_order_new(); + + THEN("it's running state is false") + { + REQUIRE_FALSE(turns_turn_order_get_running(instance)); + } + } +}
\ No newline at end of file diff --git a/lib/tests/turnsmm/turn-order.cpp b/lib/tests/turnsmm/turn-order.cpp new file mode 100644 index 0000000..d6178ba --- /dev/null +++ b/lib/tests/turnsmm/turn-order.cpp @@ -0,0 +1,16 @@ +#include "turnsmm/turn-order.hpp" + +#include <catch2/catch_test_macros.hpp> + +SCENARIO("Creating a turn order", "[lib][object][lifetime]") +{ + GIVEN("A turn order constructed using the default constructor") + { + auto instance = Turns::TurnOrder{}; + + THEN("it's running state is false") + { + REQUIRE_FALSE(instance.get_running()); + } + } +}
\ No newline at end of file |
