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"
9#include "test/testing.h"
10
11namespace yaze {
12namespace test {
13
14class OverworldTest : public ::testing::Test, public SharedRom {
15 protected:
16 void SetUp() override {
17 // Skip tests on Linux for automated github builds
18#if defined(__linux__)
19 GTEST_SKIP();
20#endif
21 }
22 void TearDown() override {}
23
25};
26
27TEST_F(OverworldTest, OverworldLoadNoRomDataError) {
28 Rom rom;
29 EXPECT_THAT(overworld_.Load(rom),
30 StatusIs(absl::StatusCode::kInvalidArgument));
31}
32
33TEST_F(OverworldTest, OverworldLoadRomDataOk) {
44}
45
46} // namespace test
47} // namespace yaze
The Rom class is used to load, save, and modify Rom data.
Definition rom.h:59
auto rom()
Definition rom.h:383
SharedRom()=default
zelda3::Overworld overworld_
Represents the full Overworld data, light and dark world.
Definition overworld.h:111
TEST_F(CpuTest, AsmParserTokenizerOk)
Definition cpu_test.cc:44
Main namespace for the application.
Definition controller.cc:18