[nostalgia/gfx/test] Cleanup
All checks were successful
Build / build (push) Successful in 1m15s

This commit is contained in:
Gary Talent 2025-05-17 17:18:11 -05:00
parent 7b8ddc189a
commit 99247cee32

View File

@ -14,7 +14,7 @@ using namespace nostalgia;
static std::map<ox::StringView, ox::Error(*)()> tests = {
{
"readWriteTileSheet",
[]() -> ox::Error {
[] -> ox::Error {
gfx::TileSheet const in;
OX_REQUIRE(buff, ox::writeMC(in));
OX_REQUIRE(out, ox::readMC<gfx::TileSheet>(buff));
@ -29,7 +29,7 @@ int main(int argc, const char **argv) {
if (argc > 0) {
auto const args = ox::Span{argv, static_cast<size_t>(argc)};
auto const testName = ox::StringView(args[1]);
if (tests.find(testName) != tests.end()) {
if (tests.contains(testName)) {
retval = static_cast<int>(tests[testName]());
} else {
retval = 1;