diff options
Diffstat (limited to 'domain/tests/participant.cpp')
| -rw-r--r-- | domain/tests/participant.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/domain/tests/participant.cpp b/domain/tests/participant.cpp index 4f32aa0..f6abef9 100644 --- a/domain/tests/participant.cpp +++ b/domain/tests/participant.cpp @@ -12,12 +12,12 @@ namespace turns::domain::tests TEST_CASE("A participant") { auto constexpr constructed_name = "Vana Thistletop"; - auto constexpr constructed_order = 17; - auto instance = participant{constructed_name, constructed_order}; + auto constexpr constructed_priority = 17; + auto instance = participant{constructed_name, constructed_priority}; SECTION("can be created") { - REQUIRE(participant::create(constructed_name, constructed_order)); + REQUIRE(participant::create(constructed_name, constructed_priority)); } SECTION("the name can be read") @@ -31,22 +31,22 @@ namespace turns::domain::tests REQUIRE(instance.property_name() == "replaced"); } - SECTION("the order can be read") + SECTION("the priority can be read") { - REQUIRE(instance.property_order_value() == constructed_order); + REQUIRE(instance.property_priority() == constructed_priority); } - SECTION("the order can be changed") + SECTION("the priority can be changed") { - instance.property_order_value() = 8; - REQUIRE(instance.property_order_value() == 8); + instance.property_priority() = 8; + REQUIRE(instance.property_priority() == 8); } SECTION("can be compared with another participant") { - auto equivalent_instance = participant{"Equivalent", constructed_order}; - auto lesser_instance = participant{"Lesser", constructed_order - 1}; - auto greater_instance = participant{"Greater", constructed_order + 1}; + auto equivalent_instance = participant{"Equivalent", constructed_priority}; + auto lesser_instance = participant{"Lesser", constructed_priority - 1}; + auto greater_instance = participant{"Greater", constructed_priority + 1}; SECTION("yielding std::partial_ordering::equivalent for itself") { |
