Update rom test, add message test
This commit is contained in:
@@ -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
|
||||
|
||||
33
src/test/zelda3/message_test.cc
Normal file
33
src/test/zelda3/message_test.cc
Normal 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
|
||||
Reference in New Issue
Block a user