diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-24 10:44:13 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-24 10:44:13 +0200 |
| commit | 3f5499cebc06356ed99159be3fb9676292cf7b8b (patch) | |
| tree | 63d36c3cd33de5746b8e3a29922e6ab7a6578def /domain/tests/turn_order_bugs.cpp | |
| parent | 0d61f98434b95c754f46c918af5152eda82077cb (diff) | |
| download | turns-3f5499cebc06356ed99159be3fb9676292cf7b8b.tar.xz turns-3f5499cebc06356ed99159be3fb9676292cf7b8b.zip | |
turns: rename domain to core
Diffstat (limited to 'domain/tests/turn_order_bugs.cpp')
| -rw-r--r-- | domain/tests/turn_order_bugs.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/domain/tests/turn_order_bugs.cpp b/domain/tests/turn_order_bugs.cpp deleted file mode 100644 index 418a36c..0000000 --- a/domain/tests/turn_order_bugs.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "turns/domain/participant.hpp" -#include "turns/domain/turn_order.hpp" - -#include <catch2/catch_test_macros.hpp> - -#include <giomm/liststore.h> - -namespace turns::domain::tests -{ - /** - * Bug description: - * - * After having stepped according to the step pattern below, tt was possible to step backward often enough to underflow the round number: - * - forward - * - backward - * - forward - */ - SCENARIO("Can step back infinitely", "[turn_order][bug]") - { - GIVEN("a non-empty turn_order") - { - auto instance = turn_order::create(); - - instance->add("A", 0, disposition::neutral); - - WHEN("it is started and then stepped forward, backward, forward") - { - instance->start(); - instance->next(); - instance->previous(); - instance->next(); - - THEN("it is not possible to step backwards more than once") - { - instance->previous(); - instance->previous(); - REQUIRE(instance->round_number() == 0); - } - } - } - } -} // namespace turns::domain::tests
\ No newline at end of file |
