diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-20 16:49:49 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-20 16:49:49 +0200 |
| commit | bce0c3d0a21c4a0f53984d55c00d1505957353a3 (patch) | |
| tree | 7e17b84585e27acb3b57a74978befe70ac8a800b /lib/tests/turnsmm | |
| parent | 7d9d987d6ccb80aabe98ee1fdb9e5bcc7394ddf2 (diff) | |
| download | turns-bce0c3d0a21c4a0f53984d55c00d1505957353a3.tar.xz turns-bce0c3d0a21c4a0f53984d55c00d1505957353a3.zip | |
lib: add wrapper for id
Diffstat (limited to 'lib/tests/turnsmm')
| -rw-r--r-- | lib/tests/turnsmm/participant.cpp | 10 |
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") |
