From 40653e03ad74218592c9d9773af12f3a8fe5b02e Mon Sep 17 00:00:00 2001 From: LunaTheFoxgirl Date: Fri, 13 Dec 2024 20:06:19 +0100 Subject: [PATCH] Make UUID gen test actually do something --- source/numem/uuid.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/numem/uuid.d b/source/numem/uuid.d index 3b5099d..c925233 100644 --- a/source/numem/uuid.d +++ b/source/numem/uuid.d @@ -316,11 +316,11 @@ unittest { @("uuid: generation") unittest { import numem.core; + Random random = nogc_new!Random(); + scope(exit) nogc_delete(random); UUID uuid = UUID.createRandom(random); - import std.stdio : writeln; - - - nogc_delete(random); + scope(exit) nogc_delete(uuid); + assert(uuid != UUID.nil()); } \ No newline at end of file