@@ -177,6 +177,32 @@ TEST_CASE("Map - Icon Vanishing")
177177 CHECK (game.GetMap ().At (14 , 1 ).HasType (ObjectType::ICON_WALL));
178178}
179179
180+ TEST_CASE (" Map - Icon Spread" )
181+ {
182+ Game game (MAPS_DIR " off_limits_bug.txt" );
183+
184+ game.MovePlayer (Direction::RIGHT);
185+ game.MovePlayer (Direction::RIGHT);
186+ game.MovePlayer (Direction::RIGHT);
187+ game.MovePlayer (Direction::RIGHT);
188+ game.MovePlayer (Direction::RIGHT);
189+ game.MovePlayer (Direction::RIGHT);
190+ game.MovePlayer (Direction::RIGHT);
191+ game.MovePlayer (Direction::RIGHT);
192+ game.MovePlayer (Direction::LEFT);
193+ game.MovePlayer (Direction::LEFT);
194+
195+ CHECK (game.GetMap ().At (21 , 3 ).HasType (ObjectType::ICON_WALL));
196+ CHECK (game.GetMap ().At (21 , 4 ).HasType (ObjectType::ICON_WALL));
197+ CHECK (game.GetMap ().At (21 , 5 ).HasType (ObjectType::ICON_WALL));
198+ CHECK (game.GetMap ().At (22 , 3 ).HasType (ObjectType::ICON_EMPTY));
199+ CHECK (game.GetMap ().At (22 , 4 ).HasType (ObjectType::ICON_EMPTY));
200+ CHECK (game.GetMap ().At (22 , 5 ).HasType (ObjectType::ICON_FLOWER));
201+ CHECK (game.GetMap ().At (23 , 3 ).HasType (ObjectType::ICON_EMPTY));
202+ CHECK (game.GetMap ().At (23 , 4 ).HasType (ObjectType::ICON_EMPTY));
203+ CHECK (game.GetMap ().At (23 , 5 ).HasType (ObjectType::ICON_EMPTY));
204+ }
205+
180206TEST_CASE (" Preprocess - Basic" )
181207{
182208 Game game (MAPS_DIR " baba_is_you.txt" );
0 commit comments