Update rom test, add message test

This commit is contained in:
scawful
2024-10-04 01:35:55 -04:00
parent a64700d601
commit d6fce368d6
2 changed files with 35 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "test/core/testing.h"
#include "app/gfx/snes_color.h"
namespace yaze {
namespace test {
@@ -242,4 +243,4 @@ TEST_F(RomTest, ReadTransactionFailure) {
}
} // namespace test
} // namespace yaze
} // namespace yaze

View File

@@ -0,0 +1,33 @@
#include <gtest/gtest.h>
#include "app/editor/message/message_data.h"
#include "app/editor/message/message_editor.h"
#include "test/core/testing.h"
namespace yaze {
namespace test {
namespace zelda3 {
class MessageTest : public ::testing::Test, public app::SharedRom {
protected:
void SetUp() override {
#if defined(__linux__)
GTEST_SKIP();
#endif
}
void TearDown() override {}
app::editor::MessageEditor message_editor_;
std::vector<app::editor::DictionaryEntry> dictionary_;
};
TEST_F(MessageTest, LoadMessagesFromRomOk) {
EXPECT_OK(rom()->LoadFromFile("zelda3.sfc"));
EXPECT_OK(message_editor_.Initialize());
}
TEST_F(MessageTest, FindMatchingCharacterOk) {}
} // namespace zelda3
} // namespace test
} // namespace yaze