[ox/std] Add test for non-constexpr version of UUID::isNull()
This commit is contained in:
parent
aab02f25c0
commit
9583b223ca
2
deps/ox/src/ox/std/test/tests.cpp
vendored
2
deps/ox/src/ox/std/test/tests.cpp
vendored
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user