[ox/std] Add UUID str conv test and fix bugs found
This commit is contained in:
10
deps/ox/src/ox/std/test/tests.cpp
vendored
10
deps/ox/src/ox/std/test/tests.cpp
vendored
@@ -197,6 +197,16 @@ static std::map<ox::String, ox::Error(*)()> tests = {
|
||||
oxExpect(ox::detail::toHex(0x0f), "0f");
|
||||
oxExpect(ox::detail::toHex(0x93), "93");
|
||||
oxExpect(ox::detail::toHex(0x40), "40");
|
||||
oxExpect(ox::detail::toHex(0xf0), "f0");
|
||||
return OxError(0);
|
||||
}
|
||||
},
|
||||
{
|
||||
"UUID",
|
||||
[] {
|
||||
constexpr ox::StringView uuidStr = "8d814442-f46e-4cc3-8edc-ca3c01cc86db";
|
||||
oxRequire(uuid, ox::UUID::fromString(uuidStr));
|
||||
oxExpect(ox::StringView(uuid.toString()), uuidStr);
|
||||
return OxError(0);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user