yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_room_test.cc
Go to the documentation of this file.
2
3#include "gtest/gtest.h"
4#include <gmock/gmock.h>
5#include <gtest/gtest.h>
6
7#include "app/rom.h"
8
9namespace yaze {
10namespace test {
11namespace zelda3 {
12
13class DungeonRoomTest : public ::testing::Test, public app::SharedRom {
14protected:
15 void SetUp() override {
16 // Skip tests on Linux for automated github builds
17#if defined(__linux__)
18 GTEST_SKIP();
19#else
20 if (!rom()->LoadFromFile("./zelda3.sfc").ok()) {
21 GTEST_SKIP_("Failed to load test ROM");
22 }
23#endif
24 }
25 void TearDown() override {}
26};
27
28TEST_F(DungeonRoomTest, SingleRoomLoadOk) {
29 app::zelda3::dungeon::Room test_room(/*room_id=*/0);
30 test_room.LoadHeader();
31 // Do some assertions based on the output in ZS
32 test_room.LoadRoomFromROM();
33}
34
35} // namespace zelda3
36} // namespace test
37} // namespace yaze
A class to hold a shared pointer to a Rom object.
Definition rom.h:576
TEST_F(DungeonRoomTest, SingleRoomLoadOk)
Definition common.cc:22