test(overworld): align integration expectations

This commit is contained in:
scawful
2025-12-22 14:56:31 -05:00
parent 326594f3e6
commit 1d297d5228
3 changed files with 20 additions and 16 deletions

View File

@@ -39,6 +39,10 @@ class OverworldRegressionTest : public ::testing::Test {
for (int i = 0; i < 160; i++) {
mock_rom_data[0x1788D + i] = 0x01;
}
// Parent table - identity for LW so DW mirrors correctly (+0x40)
for (int i = 0; i < 64; i++) {
mock_rom_data[0x125EC + i] = static_cast<uint8_t>(i);
}
// Sprite sets/palettes
for (int i = 0; i < 160; i++) {
mock_rom_data[0x7A41 + i] = 0x00;

View File

@@ -249,12 +249,12 @@ TEST_F(OverworldTest, OverworldMapDestroy) {
map.set_main_palette(5);
map.SetAreaSize(AreaSizeEnum::LargeArea);
// Destroy and verify reset
// Destroy and verify identity fields are preserved for rebuild
map.Destroy();
EXPECT_EQ(map.area_graphics(), 0);
EXPECT_EQ(map.main_palette(), 0);
EXPECT_EQ(map.area_size(), AreaSizeEnum::SmallArea);
EXPECT_EQ(map.area_graphics(), 10);
EXPECT_EQ(map.main_palette(), 5);
EXPECT_EQ(map.area_size(), AreaSizeEnum::LargeArea);
EXPECT_FALSE(map.is_initialized());
}
@@ -296,4 +296,4 @@ TEST_F(OverworldTest, WorldBasedSpriteFiltering) {
}
} // namespace zelda3
} // namespace yaze
} // namespace yaze