From 99247cee32dcdd62ecb439d93ebb977c6db2b471 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 17 May 2025 17:18:11 -0500 Subject: [PATCH] [nostalgia/gfx/test] Cleanup --- src/nostalgia/modules/gfx/test/tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostalgia/modules/gfx/test/tests.cpp b/src/nostalgia/modules/gfx/test/tests.cpp index 8fd752d0..ed745931 100644 --- a/src/nostalgia/modules/gfx/test/tests.cpp +++ b/src/nostalgia/modules/gfx/test/tests.cpp @@ -14,7 +14,7 @@ using namespace nostalgia; static std::map tests = { { "readWriteTileSheet", - []() -> ox::Error { + [] -> ox::Error { gfx::TileSheet const in; OX_REQUIRE(buff, ox::writeMC(in)); OX_REQUIRE(out, ox::readMC(buff)); @@ -29,7 +29,7 @@ int main(int argc, const char **argv) { if (argc > 0) { auto const args = ox::Span{argv, static_cast(argc)}; auto const testName = ox::StringView(args[1]); - if (tests.find(testName) != tests.end()) { + if (tests.contains(testName)) { retval = static_cast(tests[testName]()); } else { retval = 1;