summaryrefslogtreecommitdiff
path: root/core/tests
diff options
context:
space:
mode:
Diffstat (limited to 'core/tests')
-rw-r--r--core/tests/participant.cpp24
-rw-r--r--core/tests/turn_order.cpp12
2 files changed, 18 insertions, 18 deletions
diff --git a/core/tests/participant.cpp b/core/tests/participant.cpp
index ed7b435..8c7c230 100644
--- a/core/tests/participant.cpp
+++ b/core/tests/participant.cpp
@@ -30,7 +30,7 @@ namespace turns::core::tests
SECTION("Can be constructed using default ctor")
{
- auto instance = participant{};
+ auto instance = Participant{};
REQUIRE(instance.property_name() == "");
REQUIRE(instance.property_priority() == 0);
REQUIRE(instance.property_disposition() == disposition::neutral);
@@ -40,7 +40,7 @@ namespace turns::core::tests
SECTION("Can be constructed using ctor")
{
- auto instance = participant{name, priority, disposition};
+ auto instance = Participant{name, priority, disposition};
REQUIRE(instance.property_name() == name);
REQUIRE(instance.property_priority() == priority);
REQUIRE(instance.property_disposition() == disposition);
@@ -50,7 +50,7 @@ namespace turns::core::tests
SECTION("Can be constructed using factory")
{
- auto instance = participant::create(name, priority, disposition);
+ auto instance = Participant::create(name, priority, disposition);
REQUIRE(instance->property_name() == name);
REQUIRE(instance->property_priority() == priority);
REQUIRE(instance->property_disposition() == disposition);
@@ -60,7 +60,7 @@ namespace turns::core::tests
SECTION("Can be constructed using JSON factory", "[json]")
{
- auto instance = participant::create(json);
+ auto instance = Participant::create(json);
REQUIRE(instance->property_name() == name);
REQUIRE(instance->property_priority() == priority);
REQUIRE(instance->property_disposition() == disposition);
@@ -75,7 +75,7 @@ namespace turns::core::tests
auto constexpr priority = 10;
auto constexpr disposition = disposition::hostile;
- auto instance = participant{name, priority, disposition};
+ auto instance = Participant{name, priority, disposition};
SECTION("Setting '::disposition' via proxy changes the 'disposition' value")
{
@@ -153,11 +153,11 @@ namespace turns::core::tests
auto constexpr constructed_name = "Vana Thistletop";
auto constexpr constructed_priority = 17;
auto constexpr constructed_disposition = disposition::friendly;
- auto instance = participant{constructed_name, constructed_priority, constructed_disposition};
+ auto instance = Participant{constructed_name, constructed_priority, constructed_disposition};
SECTION("can be created")
{
- REQUIRE(participant::create(constructed_name, constructed_priority, constructed_disposition));
+ REQUIRE(Participant::create(constructed_name, constructed_priority, constructed_disposition));
}
SECTION("allows access to its disposition")
@@ -222,9 +222,9 @@ namespace turns::core::tests
SECTION("can be compared with another participant")
{
- auto equivalent_instance = participant{"Equivalent", constructed_priority, constructed_disposition};
- auto lesser_instance = participant{"Lesser", constructed_priority - 1, constructed_disposition};
- auto greater_instance = participant{"Greater", constructed_priority + 1, constructed_disposition};
+ auto equivalent_instance = Participant{"Equivalent", constructed_priority, constructed_disposition};
+ auto lesser_instance = Participant{"Lesser", constructed_priority - 1, constructed_disposition};
+ auto greater_instance = Participant{"Greater", constructed_priority + 1, constructed_disposition};
SECTION("yielding std::partial_ordering::equivalent for itself")
{
@@ -250,7 +250,7 @@ namespace turns::core::tests
TEST_CASE("Serializing a participant")
{
- auto instance = participant::create("Participant #0", 17.2, disposition::friendly);
+ auto instance = Participant::create("Participant #0", 17.2, disposition::friendly);
auto serialized = instance->serialize();
SECTION("the active state is serialized correctly")
@@ -284,7 +284,7 @@ namespace turns::core::tests
"is-active": true
}
)");
- auto instance = participant::create(serialized);
+ auto instance = Participant::create(serialized);
SECTION("the active state is de-serialized correctly")
{
diff --git a/core/tests/turn_order.cpp b/core/tests/turn_order.cpp
index b4958c5..a7a0be0 100644
--- a/core/tests/turn_order.cpp
+++ b/core/tests/turn_order.cpp
@@ -20,12 +20,12 @@ namespace turns::core::tests
THEN("get_type() returns participant::get_type()")
{
- REQUIRE(instance->get_item_type() == participant::get_type());
+ REQUIRE(instance->get_item_type() == Participant::get_type());
}
THEN("get_typed_object(0) returns nullptr")
{
- REQUIRE(instance->get_typed_object<participant>(0) == nullptr);
+ REQUIRE(instance->get_typed_object<Participant>(0) == nullptr);
}
THEN("has_next() returns false")
@@ -70,7 +70,7 @@ namespace turns::core::tests
THEN("get_typed_object(0) returns a non-null pointer")
{
- REQUIRE(instance->get_typed_object<participant>(0) != nullptr);
+ REQUIRE(instance->get_typed_object<Participant>(0) != nullptr);
}
THEN("has_next() returns true")
@@ -109,7 +109,7 @@ namespace turns::core::tests
THEN("get_typed_object(0) still returns a non-null pointer")
{
- REQUIRE(instance->get_typed_object<participant>(0) != nullptr);
+ REQUIRE(instance->get_typed_object<Participant>(0) != nullptr);
}
THEN("has_next() still returns true")
@@ -148,7 +148,7 @@ namespace turns::core::tests
THEN("get_typed_object(0) still returns a non-null pointer")
{
- REQUIRE(instance->get_typed_object<participant>(0) != nullptr);
+ REQUIRE(instance->get_typed_object<Participant>(0) != nullptr);
}
THEN("has_next() still returns true")
@@ -188,7 +188,7 @@ namespace turns::core::tests
THEN("get_typed_object(0) still returns a non-null pointer")
{
- REQUIRE(instance->get_typed_object<participant>(0) != nullptr);
+ REQUIRE(instance->get_typed_object<Participant>(0) != nullptr);
}
THEN("has_next() still returns true")