summaryrefslogtreecommitdiff
path: root/lib/tests/turnsmm/participant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tests/turnsmm/participant.cpp')
-rw-r--r--lib/tests/turnsmm/participant.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tests/turnsmm/participant.cpp b/lib/tests/turnsmm/participant.cpp
index bcfa99c..f52abbd 100644
--- a/lib/tests/turnsmm/participant.cpp
+++ b/lib/tests/turnsmm/participant.cpp
@@ -39,6 +39,16 @@ SCENARIO("Creating a participant", "[lib][object][lifetime]")
{
REQUIRE_FALSE(instance.get_defeated());
}
+
+ THEN("its id is not empty")
+ {
+ REQUIRE_FALSE(instance.get_id().empty());
+ }
+
+ THEN("its id is a valid UUID")
+ {
+ REQUIRE(g_uuid_string_is_valid(instance.get_id().c_str()));
+ }
}
GIVEN("A participant constructed using the 3-parameter constructor")