Skip to content

Commit

Permalink
Make UUID gen test actually do something
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Dec 13, 2024
1 parent f7fc5a5 commit 40653e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/numem/uuid.d
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

0 comments on commit 40653e0

Please sign in to comment.