yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
overworld_test.cc
Go to the documentation of this file.
2
3#include <gmock/gmock.h>
4#include <gtest/gtest.h>
5
6#include "app/rom.h"
8#include "test/testing.h"
9
10namespace yaze {
11namespace test {
12
13class OverworldTest : public ::testing::Test, public SharedRom {
14 protected:
15 void SetUp() override {
16 // Skip tests on Linux for automated github builds
17#if defined(__linux__)
18 GTEST_SKIP();
19#endif
20 }
21 void TearDown() override {}
22
24};
25
26TEST_F(OverworldTest, OverworldLoadNoRomDataError) {
27 Rom rom;
28 EXPECT_THAT(overworld_.Load(&rom),
29 StatusIs(absl::StatusCode::kInvalidArgument));
30}
31
32TEST_F(OverworldTest, OverworldLoadRomDataOk) {
43}
44
45} // namespace test
46} // namespace yaze
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:59
auto rom()
Definition rom.h:384
SharedRom()=default
zelda3::Overworld overworld_
Represents the full Overworld data, light and dark world.
Definition overworld.h:112
TEST_F(CpuTest, AsmParserTokenizerOk)
Definition cpu_test.cc:44
Main namespace for the application.
Definition controller.cc:18