diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-09 10:48:30 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-09 10:48:30 +0200 |
| commit | 71fe1d395a3c1d94dac68469826118e357f7086d (patch) | |
| tree | 5db04ceaf4bf80c3f9566b26236f3d6f17266be2 /core/tests | |
| parent | 87c6607602e969d94ed8b8f97bb45f416e37b22d (diff) | |
| download | turns-71fe1d395a3c1d94dac68469826118e357f7086d.tar.xz turns-71fe1d395a3c1d94dac68469826118e357f7086d.zip | |
core: rename turn_order to TurnOderModel
Diffstat (limited to 'core/tests')
| -rw-r--r-- | core/tests/turn_order_bugs.cpp | 4 | ||||
| -rw-r--r-- | core/tests/turn_order_model.cpp (renamed from core/tests/turn_order.cpp) | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/core/tests/turn_order_bugs.cpp b/core/tests/turn_order_bugs.cpp index a79e9b4..7bfde78 100644 --- a/core/tests/turn_order_bugs.cpp +++ b/core/tests/turn_order_bugs.cpp @@ -1,5 +1,5 @@ #include "turns/core/disposition.hpp" -#include "turns/core/turn_order.hpp" +#include "turns/core/turn_order_model.hpp" #include <catch2/catch_test_macros.hpp> @@ -17,7 +17,7 @@ namespace turns::core::tests { GIVEN("a non-empty turn_order") { - auto instance = turn_order::create(); + auto instance = TurnOderModel::create(); instance->add("A", 0, Disposition::Neutral); diff --git a/core/tests/turn_order.cpp b/core/tests/turn_order_model.cpp index a7633cd..1cd3633 100644 --- a/core/tests/turn_order.cpp +++ b/core/tests/turn_order_model.cpp @@ -1,4 +1,4 @@ -#include "turns/core/turn_order.hpp" +#include "turns/core/turn_order_model.hpp" #include "turns/core/disposition.hpp" #include "turns/core/participant.hpp" @@ -17,7 +17,7 @@ namespace turns::core::tests { GIVEN("an empty turn_order") { - auto instance = turn_order::create(); + auto instance = TurnOderModel::create(); THEN("get_n_items() returns 0") { @@ -56,14 +56,14 @@ namespace turns::core::tests THEN("round_number() returns invalid_round_number") { - REQUIRE(instance->round_number() == turn_order::invalid_round_number); + REQUIRE(instance->round_number() == TurnOderModel::invalid_round_number); } } } SCENARIO("Adding participants") { - auto instance = turn_order::create(); + auto instance = TurnOderModel::create(); GIVEN("a participant has been added to a turn_order") { @@ -101,7 +101,7 @@ namespace turns::core::tests THEN("round_number() returns invalid_round_number") { - REQUIRE(instance->round_number() == turn_order::invalid_round_number); + REQUIRE(instance->round_number() == TurnOderModel::invalid_round_number); } WHEN("the turn_order is start()ed") @@ -230,7 +230,7 @@ namespace turns::core::tests { GIVEN("an empty turn order") { - auto instance = turn_order{}; + auto instance = TurnOderModel{}; CHECK(instance.is_empty()); WHEN("loading a serialized turn order with one named participant") @@ -284,7 +284,7 @@ namespace turns::core::tests { GIVEN("A turn order with 3 participants (A,B,C) of priorities 100, 0, and -100 respectively") { - auto instance = turn_order{}; + auto instance = TurnOderModel{}; instance.add("A", 100, Disposition::Friendly); instance.add("B", 0, Disposition::Friendly); |
