[keel,nostalgia/gfx] Minor cleanup of tests

This commit is contained in:
2026-01-25 21:51:10 -06:00
parent 4aa8255c55
commit 9ce4d3f8c7
3 changed files with 3 additions and 3 deletions

View File

@@ -8,4 +8,4 @@ target_link_libraries(
NostalgiaGfx
)
add_test("[NostalgiaGfx] readWriteTileSheet" ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NostalgiaGfxTest readWriteTileSheet)
add_test("[nostalgia/gfx] readWriteTileSheet" ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NostalgiaGfxTest readWriteTileSheet)

View File

@@ -18,7 +18,7 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
gfx::TileSheet const in;
OX_REQUIRE(buff, ox::writeMC(in));
OX_REQUIRE(out, ox::readMC<gfx::TileSheet>(buff));
oxAssert(in.subsheet.name == out.subsheet.name, "subsheet.name serialization broken");
ox::expect(in.subsheet.name, out.subsheet.name);
return {};
}
},

View File

@@ -19,7 +19,7 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
ox::Array<char, hdr.size()> buff;
ox::CharBuffWriter bw(buff);
OX_RETURN_ERROR(keel::writeUuidHeader(bw, uuid));
oxExpect(ox::StringView(buff.data(), buff.size()), hdr);
ox::expect(ox::StringView(buff.data(), buff.size()), hdr);
return {};
}
},