[keel,nostalgia/gfx] Minor cleanup of tests
This commit is contained in:
@@ -8,4 +8,4 @@ target_link_libraries(
|
|||||||
NostalgiaGfx
|
NostalgiaGfx
|
||||||
)
|
)
|
||||||
|
|
||||||
add_test("[NostalgiaGfx] readWriteTileSheet" ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NostalgiaGfxTest readWriteTileSheet)
|
add_test("[nostalgia/gfx] readWriteTileSheet" ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/NostalgiaGfxTest readWriteTileSheet)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
|
|||||||
gfx::TileSheet const in;
|
gfx::TileSheet const in;
|
||||||
OX_REQUIRE(buff, ox::writeMC(in));
|
OX_REQUIRE(buff, ox::writeMC(in));
|
||||||
OX_REQUIRE(out, ox::readMC<gfx::TileSheet>(buff));
|
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 {};
|
return {};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ static std::map<ox::StringView, ox::Error(*)()> tests = {
|
|||||||
ox::Array<char, hdr.size()> buff;
|
ox::Array<char, hdr.size()> buff;
|
||||||
ox::CharBuffWriter bw(buff);
|
ox::CharBuffWriter bw(buff);
|
||||||
OX_RETURN_ERROR(keel::writeUuidHeader(bw, uuid));
|
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 {};
|
return {};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user