[ox/std] Add test for non-constexpr version of UUID::isNull()

This commit is contained in:
Gary Talent 2023-03-04 16:12:51 -06:00
parent aab02f25c0
commit 9583b223ca

View File

@ -207,6 +207,8 @@ static std::map<ox::String, ox::Error(*)()> tests = {
constexpr ox::StringView uuidStr = "8d814442-f46e-4cc3-8edc-ca3c01cc86db"; constexpr ox::StringView uuidStr = "8d814442-f46e-4cc3-8edc-ca3c01cc86db";
oxRequire(uuid, ox::UUID::fromString(uuidStr)); oxRequire(uuid, ox::UUID::fromString(uuidStr));
oxExpect(uuid.toString(), uuidStr); oxExpect(uuid.toString(), uuidStr);
oxExpect(ox::UUID{}.isNull(), true);
oxExpect(ox::UUID::fromString(uuidStr).value.isNull(), false);
return OxError(0); return OxError(0);
} }
}, },