From bce0c3d0a21c4a0f53984d55c00d1505957353a3 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 20 May 2025 16:49:49 +0200 Subject: lib: add wrapper for id --- lib/tests/turnsmm/participant.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/tests/turnsmm') 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") -- cgit v1.2.3