From 3dfa2b8ad4d6a8b775bc69060a10058661b857ae Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 14 May 2025 10:19:03 -0500 Subject: [PATCH] failing test case for saving monster thrash number --- test/town_write.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/town_write.cpp b/test/town_write.cpp index 2972e1ba..0c3694bf 100644 --- a/test/town_write.cpp +++ b/test/town_write.cpp @@ -43,6 +43,7 @@ TEST_CASE("Saving a town") { town->in_town_rect = {2,3,30,29}; town->difficulty = 1; town->lighting_type = LIGHT_NONE; + town->max_num_monst = 20; SECTION("With the minimal required information") { in_and_out("basic", town, scen); CHECK(town->max_dim == 32); @@ -50,6 +51,7 @@ TEST_CASE("Saving a town") { CHECK(town->in_town_rect == rect(2,3,30,29)); CHECK(town->difficulty == 1); CHECK(town->lighting_type == LIGHT_NONE); + CHECK(town->max_num_monst == 20); CHECK_FALSE(town->has_tavern); CHECK_FALSE(town->defy_scrying); }