[keel] Cleanup

This commit is contained in:
Gary Talent 2023-06-14 00:05:41 -05:00
parent ba50b083ff
commit cbb67c51ef
2 changed files with 3 additions and 6 deletions

View File

@ -4,8 +4,6 @@
#pragma once #pragma once
#include <ox/std/defines.hpp>
#include <ox/claw/claw.hpp> #include <ox/claw/claw.hpp>
#include <ox/fs/fs.hpp> #include <ox/fs/fs.hpp>

View File

@ -5,15 +5,14 @@
#undef NDEBUG #undef NDEBUG
#include <map> #include <map>
#include <string>
#include <ox/std/std.hpp> #include <ox/std/std.hpp>
#include <keel/keel.hpp> #include <keel/keel.hpp>
static std::map<std::string, ox::Error(*)()> tests = { static std::map<ox::String, ox::Error(*)()> tests = {
{ {
"writeUuidHeader", "writeUuidHeader",
[] { []() -> ox::Error {
constexpr ox::StringView uuidStr = "8d814442-f46e-4cc3-8edc-ca3c01cc86db"; constexpr ox::StringView uuidStr = "8d814442-f46e-4cc3-8edc-ca3c01cc86db";
constexpr ox::StringView hdr = "K1;8d814442-f46e-4cc3-8edc-ca3c01cc86db;"; constexpr ox::StringView hdr = "K1;8d814442-f46e-4cc3-8edc-ca3c01cc86db;";
oxRequire(uuid, ox::UUID::fromString(uuidStr)); oxRequire(uuid, ox::UUID::fromString(uuidStr));
@ -21,7 +20,7 @@ static std::map<std::string, ox::Error(*)()> tests = {
ox::CharBuffWriter bw(buff); ox::CharBuffWriter bw(buff);
oxReturnError(keel::writeUuidHeader(bw, uuid)); oxReturnError(keel::writeUuidHeader(bw, uuid));
oxExpect(ox::StringView(buff.data(), buff.size()), hdr); oxExpect(ox::StringView(buff.data(), buff.size()), hdr);
return OxError(0); return {};
} }
}, },
}; };