This commit is contained in:
parent
7b8ddc189a
commit
99247cee32
@ -14,7 +14,7 @@ using namespace nostalgia;
|
|||||||
static std::map<ox::StringView, ox::Error(*)()> tests = {
|
static std::map<ox::StringView, ox::Error(*)()> tests = {
|
||||||
{
|
{
|
||||||
"readWriteTileSheet",
|
"readWriteTileSheet",
|
||||||
[]() -> ox::Error {
|
[] -> ox::Error {
|
||||||
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));
|
||||||
@ -29,7 +29,7 @@ int main(int argc, const char **argv) {
|
|||||||
if (argc > 0) {
|
if (argc > 0) {
|
||||||
auto const args = ox::Span{argv, static_cast<size_t>(argc)};
|
auto const args = ox::Span{argv, static_cast<size_t>(argc)};
|
||||||
auto const testName = ox::StringView(args[1]);
|
auto const testName = ox::StringView(args[1]);
|
||||||
if (tests.find(testName) != tests.end()) {
|
if (tests.contains(testName)) {
|
||||||
retval = static_cast<int>(tests[testName]());
|
retval = static_cast<int>(tests[testName]());
|
||||||
} else {
|
} else {
|
||||||
retval = 1;
|
retval = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user