From 9583b223cab783eefc3d740c28b83e56ed6b6303 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 4 Mar 2023 16:12:51 -0600 Subject: [PATCH] [ox/std] Add test for non-constexpr version of UUID::isNull() --- deps/ox/src/ox/std/test/tests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deps/ox/src/ox/std/test/tests.cpp b/deps/ox/src/ox/std/test/tests.cpp index cec251572..c2e895e52 100644 --- a/deps/ox/src/ox/std/test/tests.cpp +++ b/deps/ox/src/ox/std/test/tests.cpp @@ -207,6 +207,8 @@ static std::map tests = { constexpr ox::StringView uuidStr = "8d814442-f46e-4cc3-8edc-ca3c01cc86db"; oxRequire(uuid, ox::UUID::fromString(uuidStr)); oxExpect(uuid.toString(), uuidStr); + oxExpect(ox::UUID{}.isNull(), true); + oxExpect(ox::UUID::fromString(uuidStr).value.isNull(), false); return OxError(0); } },